making a route on destroy function laravel code example
Example 1: laravel route controller
use App\Http\Controllers\UserController;
Route::get('user/{id}', [UserController::class, 'show']);
Example 2: laravel form method delete
// Blade
@method('delete')
// Html
<input type="hidden" name="_method" value="delete">