Answers for "call route in controller laravel"

3

laravel route controller

use App\Http\Controllers\UserController;

Route::get('user/{id}', [UserController::class, 'show']);
Posted by: Guest on November-29-2020
1

call laravel route js

function confirmDelete(id){
    let url = "{{ route('getDeleteRequest', ':id') }}";
    url = url.replace(':id', id);
    document.location.href=url;
}
Posted by: Guest on December-09-2020

Code answers related to "call route in controller laravel"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language