News page
'; }); Route::get('news/{id}', function($id) { return 'Article with id ' . $id . '
'; })->where('id', '[0-9]+'); Route::post('enquiry/submit', function() { return 'Posted: ' . print_r($_POST, true); });News article!
'; }}); ! Redirect::route('article', array('id' => 1)); Route::filter('auth', function() { if (Auth::guest()) { return Redirect::to('login'); } }); ! Route::get('admin', array('before' => 'auth', function() { return 'Welcome to the admin area!
'; }));' . $comment->text . '
' . $comment->author . '
'; } $comment = Comment::find(25); echo '' . $post->summary .
'; } ! echo $posts->links();{{ count($posts) }} articles to display!
! @foreach ($posts as $post){{{ $post->summary }}}
@endif @endforeach ! @include('inc/footer');Welcome to the website!
@stop layout.blade.php home.blade.php