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()
3838
3939 public function login (Request $ request )
4040 {
41+ echo '<pre> ' ;
42+ var_dump ($ request ->getBody (), $ request ->getRouteParam ('id ' ));
43+ echo '</pre> ' ;
4144 $ loginForm = new LoginForm ();
4245 if ($ request ->getMethod () === 'post ' ) {
4346 $ loginForm ->loadData ($ request ->getBody ());
Original file line number Diff line number Diff line change 3838$ app ->router ->get ('/contact ' , [SiteController::class, 'contact ' ]);
3939$ app ->router ->get ('/about ' , [AboutController::class, 'index ' ]);
4040$ app ->router ->get ('/profile ' , [SiteController::class, 'profile ' ]);
41+ $ app ->router ->get ('/profile/{id:\d+}/{username} ' , [SiteController::class, 'login ' ]);
4142// /profile/{id}
4243// /profile/13
4344// \/profile\/\w+
You can’t perform that action at this time.
0 commit comments