invest.php 958 B

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