1 | <?php |
||
13 | abstract class AbstractController extends Controller |
||
14 | { |
||
15 | use DispatchesJobs; |
||
16 | use ValidatesRequests; |
||
17 | use AuthorizesRequests; |
||
18 | |||
19 | /** |
||
20 | * The authentication guard name. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $guard; |
||
25 | |||
26 | /** |
||
27 | * The password reset broker name. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $passwordResetBroker; |
||
32 | |||
33 | /** |
||
34 | * The email verification broker name. |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $emailVerificationBroker; |
||
39 | |||
40 | /** |
||
41 | * Whitelisted methods. |
||
42 | * Array of whitelisted methods which do not need to go through middleware. |
||
43 | * |
||
44 | * @var array |
||
45 | */ |
||
46 | protected $middlewareWhitelist = []; |
||
47 | |||
48 | /** |
||
49 | * Create a new abstract controller instance. |
||
50 | */ |
||
51 | public function __construct() |
||
67 | |||
68 | /** |
||
69 | * Guess guard from accessarea. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | protected function guessGuard(): string |
||
80 | |||
81 | /** |
||
82 | * Get the guard to be used during authentication. |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | protected function getGuard(): string |
||
90 | |||
91 | /** |
||
92 | * Get the guest middleware for the application. |
||
93 | */ |
||
94 | protected function getGuestMiddleware() |
||
98 | |||
99 | /** |
||
100 | * Get the auth middleware for the application. |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | protected function getAuthMiddleware(): string |
||
108 | |||
109 | /** |
||
110 | * Guess password reset broker from accessarea. |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | protected function guessPasswordResetBroker(): string |
||
121 | |||
122 | /** |
||
123 | * Get the password reset broker to be used. |
||
124 | * |
||
125 | * @return string |
||
126 | */ |
||
127 | protected function getPasswordResetBroker(): string |
||
131 | |||
132 | /** |
||
133 | * Guess email verification broker from accessarea. |
||
134 | * |
||
135 | * @return string |
||
136 | */ |
||
137 | protected function guessEmailVerificationBroker(): string |
||
144 | |||
145 | /** |
||
146 | * Get the email verification broker to be used. |
||
147 | * |
||
148 | * @return string |
||
149 | */ |
||
150 | protected function getEmailVerificationBroker(): string |
||
154 | } |
||
155 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.