03.12.2015 Views

laravel4cookbook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Authentication 33<br />

14 login<br />

15 <br />

16 @endif<br />

17 <br />

18 <br />

19 @show<br />

.<br />

This file should be saved as app/views/header.blade.php.<br />

Lastly, we should add a route to the logout action:<br />

1 Route::any("/logout", [<br />

2 "as" => "user/logout",<br />

3 "uses" => "UserController@logout"<br />

4 ]);<br />

.<br />

This was extracted from app/routes.php.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!