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