empty laravel app

This commit is contained in:
2026-02-03 07:30:06 +01:00
parent 55bf0ebea5
commit 04a61b71ef
169 changed files with 15318 additions and 0 deletions

8
routes/console.php Normal file
View 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');

22
routes/web.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
if (app()->environment('local', 'testing')) {
Route::get('/login-jonathan', function () {
$user = \App\Models\User::where('email', 'jonathan@blijnder.nl')->first();
if (! $user) {
\Illuminate\Support\Facades\Artisan::call('db:seed', ['--class' => 'Database\\Seeders\\JonathanSeeder']);
$user = \App\Models\User::where('email', 'jonathan@blijnder.nl')->first();
}
auth()->login($user);
return redirect('/cp');
});
}