Created
April 13, 2016 16:21
-
-
Save jtallant/106955e38a0b5cc8e41272030d571b6d to your computer and use it in GitHub Desktop.
route-anonymous-function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::get('projects/messages', function() { | |
$data = [ | |
'messages' => [ | |
'title' => 'Sidebar is cut off', | |
'author' => ['name' => 'John Doe', 'email' => '[email protected]'] | |
] | |
]; | |
return view('projects.messages', $data); # views/projects/messages.twig | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment