web.php 799 B

12345678910111213141516171819202122232425
  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('/', function () {
  13. return view('welcome');
  14. });
  15. Auth::routes();
  16. Route::get('/home', 'HomeController@index')->name('home');
  17. Route::get('/user', 'UserController@index')->name('all.positions');
  18. Route::get('/user/{id}', 'UserController@show')->where('id', '[0-9]+')->name('user.position');
  19. Route::get('/user/{id}/last', 'UserController@showLast')->where('id', '[0-9]+')->name('last.position');