region.php 843 B

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