Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Inline routing (Filter)
- '(:user)/(:pass)/example' => function() {
- //Get value of :user here
- $user = ;
- //Get value of :pass here
- $pass = ;
- echo $user . ' + ' . $pass;
- if(strlen($user) && strlen($pass)) {
- return Request::forge('net/luvina/training/example', false)->execute();
- } else {
- return Response::forge('Access Denied');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement