1 |
5d28dbf4
|
Marek Lovčí
|
<?php
|
2 |
|
|
|
3 |
|
|
use Illuminate\Support\Facades\Route;
|
4 |
|
|
|
5 |
|
|
/*
|
6 |
|
|
|--------------------------------------------------------------------------
|
7 |
|
|
| Web Routes
|
8 |
|
|
|--------------------------------------------------------------------------
|
9 |
|
|
|
|
10 |
|
|
| Here is where you can register web routes for your application. These
|
11 |
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
12 |
|
|
| contains the "web" middleware group. Now create something great!
|
13 |
|
|
|
|
14 |
|
|
*/
|
15 |
|
|
|
16 |
c66c7237
|
rizir01
|
/*
|
17 |
|
|
Route::get('/users/{id}', function ($id) {
|
18 |
|
|
return 'Thhis is user ' . $id;
|
19 |
|
|
});
|
20 |
|
|
|
21 |
|
|
Route::get('/detail', function () {
|
22 |
|
|
return view('pages.detail');
|
23 |
5d28dbf4
|
Marek Lovčí
|
});
|
24 |
c66c7237
|
rizir01
|
*/
|
25 |
|
|
|
26 |
|
|
Route::get('/', 'PagesController@index');
|
27 |
|
|
Route::get('/info', 'PagesController@info');
|
28 |
|
|
Route::get('/services', 'PagesController@services');
|
29 |
|
|
Route::resource('/detail', 'DetailsController', array('only' => array('index', 'show')));
|
30 |
|
|
|