You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

web.php 863B

1234567891011121314151617181920212223242526
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. Route::get('/', 'HomeController@index');
  13. Auth::routes();
  14. Route::get('/', 'HomeController@index')->name('home');
  15. Route::get('/deals/list/{type}', 'HomeController@list')->name('deals.list');
  16. Route::get('/deals/view/{type}/{id}', 'HomeController@view')->name('deals.view');
  17. Route::get('/deals/delete/{type}/{id}', 'HomeController@delete')->name('deals.delete');
  18. Route::match(['GET', 'POST'], '/deals/update/{type}/{id}', 'HomeController@update')->name('deals.update');