contract.php 996 B

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