-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathroute.php
More file actions
26 lines (17 loc) · 751 Bytes
/
Copy pathroute.php
File metadata and controls
26 lines (17 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
use App\Route;
Route::get('/', 'Web\WebGetController@index');
//Bir diğer kullanımı
/*Route::get('/', function () {
echo 'merhaba dünya!';
});*/
//Post işlemini tanımlama
Route::post('/uye/giris', 'Web\WebPostController@login');
// Yetkilendirme kullanımı (Session)
// 2. parametre olan "Array" Middleware fonksiyonudur. "app/Middleware/... klasörü altında çalışmaktadır
Route::get('/uye/profil', ["Auth" => "uye"], 'Web\WebGetController@profil');
Route::get('/uye/giris', 'Web\WebGetController@giris');
Route::get('/admin', 'Admin\AdminGetController@index');
//Parametreler ile çalışma
//Route::get('/admin/{url}', 'Admin\AdminGetController@index');
//Route::get('/admin/{id}', 'Admin\AdminGetController@index');