env('APP_HOST'), 'prefix' => 'admin/grantItem'],function(){ Route::get('index', 'GrantItemsController@index')->name('admin.grantItem.index'); Route::post('index', 'GrantItemsController@index')->name('admin.grantItem.ajax.index'); Route::get('store','GrantItemsController@store')->name('admin.grantItem.store'); Route::post('store','GrantItemsController@store')->name('admin.grantItem.save'); Route::post('destroy/{id?}','GrantItemsController@destroy')->name('admin.grantItem.destroy'); Route::post('destroys','GrantItemsController@destroys')->name('admin.grantItem.destroys'); Route::get('edit/{id?}','GrantItemsController@edit')->name('admin.grantItem.edit'); Route::post('update/{id?}','GrantItemsController@update')->name('admin.grantItem.update'); }); Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'grantItem'],function (){ Route::post('list', 'Front\\GrantItemsController@index'); });