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