Loading routes/web.php +3 −1 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ use App\Models\DivingLocation; use App\Models\Boat; use App\Models\Prerogative; Route::get('/login', function () { return view('login', ['wrongPassword' => false]); })->name('login'); Loading Loading @@ -68,7 +70,7 @@ if(is_string($pre)) { return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all(), 'error' => $pre]); return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all(), 'error' => $pre, 'previousDives' => session()->get('previousDives')]); } else { Loading Loading
routes/web.php +3 −1 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ use App\Models\DivingLocation; use App\Models\Boat; use App\Models\Prerogative; Route::get('/login', function () { return view('login', ['wrongPassword' => false]); })->name('login'); Loading Loading @@ -68,7 +70,7 @@ if(is_string($pre)) { return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all(), 'error' => $pre]); return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all(), 'error' => $pre, 'previousDives' => session()->get('previousDives')]); } else { Loading