Skip to content

Commit

Permalink
Add a name to the logout route like login route. (#15889)
Browse files Browse the repository at this point in the history
  • Loading branch information
tortuetorche authored and taylorotwell committed Oct 13, 2016
1 parent cd3e3cd commit eed247c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function auth()
// Authentication Routes...
$this->get('login', 'Auth\LoginController@showLoginForm')->name('login');
$this->post('login', 'Auth\LoginController@login');
$this->post('logout', 'Auth\LoginController@logout');
$this->post('logout', 'Auth\LoginController@logout')->name('logout');

// Registration Routes...
$this->get('register', 'Auth\RegisterController@showRegistrationForm');
Expand Down

0 comments on commit eed247c

Please sign in to comment.