File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ public function home()
38
38
39
39
public function login (Request $ request )
40
40
{
41
+ echo '<pre> ' ;
42
+ var_dump ($ request ->getBody (), $ request ->getRouteParam ('id ' ));
43
+ echo '</pre> ' ;
41
44
$ loginForm = new LoginForm ();
42
45
if ($ request ->getMethod () === 'post ' ) {
43
46
$ loginForm ->loadData ($ request ->getBody ());
Original file line number Diff line number Diff line change 38
38
$ app ->router ->get ('/contact ' , [SiteController::class, 'contact ' ]);
39
39
$ app ->router ->get ('/about ' , [AboutController::class, 'index ' ]);
40
40
$ app ->router ->get ('/profile ' , [SiteController::class, 'profile ' ]);
41
+ $ app ->router ->get ('/profile/{id:\d+}/{username} ' , [SiteController::class, 'login ' ]);
41
42
// /profile/{id}
42
43
// /profile/13
43
44
// \/profile\/\w+
You can’t perform that action at this time.
0 commit comments