url for destroy laravel 8 code example
Example 1: laravel form method delete
// Blade
@method('delete')
// Html
<input type="hidden" name="_method" value="delete">
Example 2: laravel 8 routes namespace
Route::group(['namespace' => 'App\Http\Controllers', 'prefix' => 'admin',
'as' => 'admin.', 'middleware' => ['auth:sanctum', 'verified']], function()
{
Route::get('/dashboard', ['DashboardController', 'index']);
});