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