Issues (158)

app/Http/Controllers/Auth/LoginController.php (1 issue)

1
<?php
2
3
namespace App\Http\Controllers\Auth;
4
5
use App\Http\Controllers\Controller;
6
use Illuminate\Foundation\Auth\AuthenticatesUsers;
0 ignored issues
show
The type Illuminate\Foundation\Auth\AuthenticatesUsers was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
class LoginController extends Controller
9
{
10
    /*
11
    |--------------------------------------------------------------------------
12
    | Login Controller
13
    |--------------------------------------------------------------------------
14
    |
15
    | This controller handles authenticating users for the application and
16
    | redirecting them to your home screen. The controller uses a trait
17
    | to conveniently provide its functionality to your applications.
18
    |
19
    */
20
21
    use AuthenticatesUsers;
22
23
    /**
24
     * Where to redirect users after login.
25
     *
26
     * @var string
27
     */
28
    protected $redirectTo = '/home';
29
30
    /**
31
     * Create a new controller instance.
32
     *
33
     * @return void
34
     */
35
    public function __construct()
36
    {
37
        $this->middleware('guest')->except('logout');
38
    }
39
}
40