Created
February 11, 2021 15:41
-
-
Save nicolaskempf57/7210d7553bf866074aedb212a93181b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Http\Controllers\LocationsController; | |
use Illuminate\Http\Request; | |
Route::get('/locations/{location:slug}', [LocationsController::class, 'show']) | |
->name('locations.view') | |
->missing(function (Request $request) { | |
return Redirect::route('locations.index'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment