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