Skip to content

Commit 6ecd106

Browse files
committed
Make the default controller empty and do not use middlewares in controllers
1 parent be08ed1 commit 6ecd106

File tree

4 files changed

+2
-36
lines changed

4 files changed

+2
-36
lines changed

tests/Fixtures/Http/Controllers/Controller.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
namespace Tests\Fixtures\Http\Controllers;
44

5-
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
6-
use Illuminate\Foundation\Bus\DispatchesJobs;
7-
use Illuminate\Foundation\Validation\ValidatesRequests;
8-
use Illuminate\Routing\Controller as BaseController;
9-
10-
class Controller extends BaseController
5+
abstract class Controller
116
{
12-
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
7+
138
}

tests/Fixtures/Http/Controllers/Identities/Auth/ConnectController.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ class ConnectController extends Controller
2323

2424
use ConnectUserIdentity;
2525

26-
/**
27-
* Create a new controller instance.
28-
*
29-
* @return void
30-
*/
31-
public function __construct()
32-
{
33-
$this->middleware('auth');
34-
}
35-
3626
/**
3727
* Get a validator for an incoming connection request.
3828
*

tests/Fixtures/Http/Controllers/Identities/Auth/LoginController.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,4 @@ class LoginController extends Controller
2121

2222
use AuthenticatesUsersWithIdentity;
2323

24-
/**
25-
* Create a new controller instance.
26-
*
27-
* @return void
28-
*/
29-
public function __construct()
30-
{
31-
$this->middleware('guest');
32-
}
3324
}

tests/Fixtures/Http/Controllers/Identities/Auth/RegisterController.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ class RegisterController extends Controller
2424

2525
use RegistersUsersWithIdentity;
2626

27-
/**
28-
* Create a new controller instance.
29-
*
30-
* @return void
31-
*/
32-
public function __construct()
33-
{
34-
$this->middleware('guest');
35-
}
36-
3727
/**
3828
* Get a validator for an incoming registration request.
3929
*

0 commit comments

Comments
 (0)