1Route::prefix('admin')->group(function () {
2 Route::get('/users', function () {
3 // Matches The "/admin/users" URL
4 });
5});
1Route::group(['prefix' => 'admin'], function () {
2 Route::get('users', function () {
3 // Matches The "/admin/users" URL
4 });
5});
1function confirmDelete(id){
2 let url = "{{ route('getDeleteRequest', ':id') }}";
3 url = url.replace(':id', id);
4 document.location.href=url;
5}
6
1Route::get($uri, $callback);
2Route::post($uri, $callback);
3Route::put($uri, $callback);
4Route::patch($uri, $callback);
5Route::delete($uri, $callback);
6Route::options($uri, $callback);