env('APP_HOST'), 'prefix' => 'admin/moneyDetail'],function(){ Route::get('index', 'MoneyDetailsController@index')->name('admin.moneyDetail.index'); Route::post('index', 'MoneyDetailsController@index')->name('admin.moneyDetail.ajax.index'); Route::get('store','MoneyDetailsController@store')->name('admin.moneyDetail.store'); Route::post('store','MoneyDetailsController@store')->name('admin.moneyDetail.save'); Route::post('destroy/{id?}','MoneyDetailsController@destroy')->name('admin.moneyDetail.destroy'); Route::post('destroys','MoneyDetailsController@destroys')->name('admin.moneyDetail.destroys'); Route::get('edit/{id?}','MoneyDetailsController@edit')->name('admin.moneyDetail.edit'); Route::post('update/{id?}','MoneyDetailsController@update')->name('admin.moneyDetail.update'); });