area.php 920 B

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