test-inertia-app/app/Http/Controllers/DashboardController.php
2025-11-07 13:36:00 -03:00

22 lines
469 B
PHP

<?php
namespace App\Http\Controllers;
use Inertia\Inertia;
class DashboardController extends Controller
{
/**
* Show the dashboard page.
*/
public function index()
{
return Inertia::render('dashboard', []);
}
public function teste(){
$dado = "testado";
$listagem = [['id' => 1, 'nome' => 'teste1'], ['id' => 2, 'nome' => 'teste2']];
return Inertia::render('teste', compact('dado', 'listagem'));
}
}