Skip to content

Commit 0cd9ee1

Browse files
committed
Extend controller by default.
1 parent bc593c1 commit 0cd9ee1

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

app/Http/Controllers/Auth/AuthController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php namespace App\Http\Controllers\Auth;
22

3+
use Illuminate\Routing\Controller;
34
use Illuminate\Contracts\Auth\Guard;
4-
55
use App\Http\Requests\Auth\LoginRequest;
66
use App\Http\Requests\Auth\RegisterRequest;
77

88
/**
99
* @Middleware("guest", except={"logout"})
1010
*/
11-
class AuthController {
11+
class AuthController extends Controller {
1212

1313
/**
1414
* The Guard implementation.

app/Http/Controllers/Auth/PasswordController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<?php namespace App\Http\Controllers\Auth;
22

33
use Illuminate\Http\Request;
4+
use Illuminate\Routing\Controller;
45
use Illuminate\Contracts\Auth\PasswordBroker;
56
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
67

78
/**
89
* @Middleware("guest")
910
*/
10-
class PasswordController {
11+
class PasswordController extends Controller {
1112

1213
/**
1314
* The password broker implementation.

app/Http/Controllers/HomeController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php namespace App\Http\Controllers;
22

3-
class HomeController {
3+
use Illuminate\Routing\Controller;
4+
5+
class HomeController extends Controller {
46

57
/*
68
|--------------------------------------------------------------------------

config/app.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
'Illuminate\Auth\AuthServiceProvider',
113113
'Illuminate\Cache\CacheServiceProvider',
114114
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
115+
'Illuminate\Routing\ControllerServiceProvider',
115116
'Illuminate\Cookie\CookieServiceProvider',
116117
'Illuminate\Database\DatabaseServiceProvider',
117118
'Illuminate\Encryption\EncryptionServiceProvider',

0 commit comments

Comments
 (0)