grantItem.php 1015 B

123456789101112131415161718192021
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group(['domain' => env('APP_HOST'), 'prefix' => 'admin/grantItem'],function(){
  4. Route::get('index', 'GrantItemsController@index')->name('admin.grantItem.index');
  5. Route::post('index', 'GrantItemsController@index')->name('admin.grantItem.ajax.index');
  6. Route::get('store','GrantItemsController@store')->name('admin.grantItem.store');
  7. Route::post('store','GrantItemsController@store')->name('admin.grantItem.save');
  8. Route::post('destroy/{id?}','GrantItemsController@destroy')->name('admin.grantItem.destroy');
  9. Route::post('destroys','GrantItemsController@destroys')->name('admin.grantItem.destroys');
  10. Route::get('edit/{id?}','GrantItemsController@edit')->name('admin.grantItem.edit');
  11. Route::post('update/{id?}','GrantItemsController@update')->name('admin.grantItem.update');
  12. });
  13. Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'grantItem'],function (){
  14. Route::post('list', 'Front\\GrantItemsController@index');
  15. });