123456789101112131415161718192021 |
- <?php
- use Illuminate\Support\Facades\Route;
- Route::group(['domain' => env('APP_HOST'), 'prefix' => 'admin/contract'],function(){
- Route::get('index', 'ContractsController@index')->name('admin.contract.index');
- Route::post('index', 'ContractsController@index')->name('admin.contract.ajax.index');
- Route::get('store','ContractsController@store')->name('admin.contract.store');
- Route::post('store','ContractsController@store')->name('admin.contract.save');
- Route::post('destroy/{id?}','ContractsController@destroy')->name('admin.contract.destroy');
- Route::post('destroys','ContractsController@destroys')->name('admin.contract.destroys');
- Route::get('edit/{id?}','ContractsController@edit')->name('admin.contract.edit');
- Route::post('update/{id?}','ContractsController@update')->name('admin.contract.update');
- });
- Route::group(['domain' => env('APP_HOST_WEB'), 'prefix' => 'contract'],function (){
- Route::post('list', 'Front\\ContractsController@index');
- });
|