Horje
Laravel Customizing Missing Model Behavior Code Example
Laravel Customizing Missing Model Behavior
use App\Http\Controllers\LocationsController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;

Route::get('/locations/{location:slug}', [LocationsController::class, 'show'])
        ->name('locations.view')
        ->missing(function (Request $request) {
            return Redirect::route('locations.index');
        });
Source: laravel.com




Php

Related
how to use xampp for php and mysql Code Example how to use xampp for php and mysql Code Example
get current date epoch php Code Example get current date epoch php Code Example
foreach in json object php Code Example foreach in json object php Code Example
hide my echo from page php Code Example hide my echo from page php Code Example
Array unpacking support for string-keyed arrays - PHP 8.1 Code Example Array unpacking support for string-keyed arrays - PHP 8.1 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7