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