-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathroutes.blade.php
20 lines (19 loc) · 1.39 KB
/
routes.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Auto-generated admin routes */
Route::middleware(['auth:' . config('admin-auth.defaults.guard'), 'admin'])->group(static function () {
Route::prefix('admin')->namespace('App\Http\Controllers\Admin')->name('admin/')->group(static function() {
Route::prefix('{{ $resource }}')->name('{{ $resource }}/')->group(static function() {
{!! str_pad("Route::get('/',", 60) !!}'{{ $controllerPartiallyFullName }}@index')->name('index');
{!! str_pad("Route::get('/create',", 60) !!}'{{ $controllerPartiallyFullName }}@create')->name('create');
{!! str_pad("Route::post('/',", 60) !!}'{{ $controllerPartiallyFullName }}@store')->name('store');
{!! str_pad("Route::get('/{".$modelVariableName."}/edit',", 60) !!}'{{ $controllerPartiallyFullName }}@edit')->name('edit');
@if(!$withoutBulk)
{!! str_pad("Route::post('/bulk-destroy',", 60) !!}'{{ $controllerPartiallyFullName }}@bulkDestroy')->name('bulk-destroy');
@endif
{!! str_pad("Route::post('/{".$modelVariableName."}',", 60) !!}'{{ $controllerPartiallyFullName }}@update')->name('update');
{!! str_pad("Route::delete('/{".$modelVariableName."}',", 60) !!}'{{ $controllerPartiallyFullName }}@destroy')->name('destroy');
@if($export)
{!! str_pad("Route::get('/export',", 60) !!}'{{ $controllerPartiallyFullName }}@export')->name('export');
@endif
});
});
});