Skip to content

Commit

Permalink
Remove middleware definitions from controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmile committed Jul 3, 2024
1 parent e21dfbd commit f544cdb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 40 deletions.
10 changes: 0 additions & 10 deletions app/Http/Controllers/Auth/ForgotPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,4 @@ class ForgotPasswordController extends Controller
|
*/
use SendsPasswordResetEmails;

/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
}
10 changes: 0 additions & 10 deletions app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ class LoginController extends Controller
*/
protected $redirectTo = '/dashboard';

/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest', ['except' => 'logout']);
}

/**
* Handle a login request to the application.
*
Expand Down
10 changes: 0 additions & 10 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ class RegisterController extends Controller
*/
protected $redirectTo = '/dashboard';

/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}

/**
* Handle a registration request for the application.
*
Expand Down
10 changes: 0 additions & 10 deletions app/Http/Controllers/Auth/ResetPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,4 @@ class ResetPasswordController extends Controller
use ResetsPasswords;

public $redirectTo = '/dashboard';

/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest');
}
}

0 comments on commit f544cdb

Please sign in to comment.