Init commit
This commit is contained in:
8
routes/console.php
Normal file
8
routes/console.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
15
routes/web.php
Normal file
15
routes/web.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Job;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
Route::get('/', function () {
|
||||
return Inertia::render('Home');
|
||||
});
|
||||
|
||||
Route::get("/job/{jobId}", function ($jobId) {
|
||||
return Inertia::render('Job', [
|
||||
'job' => Job::find($jobId)
|
||||
]);
|
||||
});
|
Reference in New Issue
Block a user