initial commit
This commit is contained in:
commit
2e0cbc254c
174 changed files with 27742 additions and 0 deletions
22
app/Http/Controllers/DashboardController.php
Normal file
22
app/Http/Controllers/DashboardController.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?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'));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue