Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Issues (990)

Branch: next

src/config/backpack/base.php (1 issue)

Labels
Severity
1
<?php
2
3
return [
4
5
    /*
6
    |--------------------------------------------------------------------------
7
    | Registration Open
8
    |--------------------------------------------------------------------------
9
    |
10
    | Choose whether new users/admins are allowed to register.
11
    | This will show the Register button on the login page and allow access to the
12
    | Register functions in AuthController.
13
    |
14
    | By default the registration is open only on localhost.
15
    */
16
17
    'registration_open' => env('BACKPACK_REGISTRATION_OPEN', env('APP_ENV') === 'local'),
18
19
    /*
20
    |--------------------------------------------------------------------------
21
    | Routing
22
    |--------------------------------------------------------------------------
23
    */
24
25
    // The prefix used in all base routes (the 'admin' in admin/dashboard)
26
    // You can make sure all your URLs use this prefix by using the backpack_url() helper instead of url()
27
    'route_prefix' => 'admin',
28
29
    // The web middleware (group) used in all base & CRUD routes
30
    // If you've modified your "web" middleware group (ex: removed sessions), you can use a different
31
    // route group, that has all the the middleware listed below in the comments.
32
    'web_middleware' => 'web',
33
    // Or you can comment the above, and uncomment the complete list below.
34
    // 'web_middleware' => [
35
    //     \App\Http\Middleware\EncryptCookies::class,
36
    //     \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
37
    //     \Illuminate\Session\Middleware\StartSession::class,
38
    //     \Illuminate\View\Middleware\ShareErrorsFromSession::class,
39
    //     \App\Http\Middleware\VerifyCsrfToken::class,
40
    // ],
41
42
    // Set this to false if you would like to use your own AuthController and PasswordController
43
    // (you then need to setup your auth routes manually in your routes.php file)
44
    // Warning: if you disable this, the password recovery routes (below) will be disabled too!
45
    'setup_auth_routes' => true,
46
47
    // Set this to false if you would like to skip adding the dashboard routes
48
    // (you then need to overwrite the login route on your AuthController)
49
    'setup_dashboard_routes' => true,
50
51
    // Set this to false if you would like to skip adding "my account" routes
52
    // (you then need to manually define the routes in your web.php)
53
    'setup_my_account_routes' => true,
54
55
    // Set this to false if you would like to skip adding the password recovery routes
56
    // (you then need to manually define the routes in your web.php)
57
    'setup_password_recovery_routes' => true,
58
59
    // Set this to true if you would like to enable email verification for your user model.
60
    // Make sure your user model implements the MustVerifyEmail contract and your database
61
    // table contains the `email_verified_at` column. Read the following before enabling:
62
    // https://backpackforlaravel.com/docs/6.x/base-how-to#enable-email-verification-in-backpack-routes
63
    'setup_email_verification_routes' => false,
64
65
    // When email verification is enabled, automatically add the Verified middleware to Backpack routes?
66
    // Set false if you want to use your own Verified middleware in `middleware_class`.
67
    'setup_email_verification_middleware' => true,
68
69
    // How many times in any given time period should the user be allowed to
70
    // request a new verification email?
71
    // Defaults to 1,10 - 1 time in 10 minutes.
72
    'email_verification_throttle_access' => '3,15',
73
74
    /*
75
    |--------------------------------------------------------------------------
76
    | Security
77
    |--------------------------------------------------------------------------
78
    */
79
80
    // Backpack will prevent visitors from requesting password recovery too many times
81
    // for a certain email, to make sure they cannot be spammed that way.
82
    // How many seconds should a visitor wait, after they've requested a
83
    // password reset, before they can try again for the same email?
84
    'password_recovery_throttle_notifications' => 600, // time in seconds
85
86
    // How much time should the token sent to the user email be considered valid?
87
    // After this time expires, user needs to request a new reset token.
88
    'password_recovery_token_expiration' => 60, // time in minutes
89
90
    // Backpack will prevent an IP from trying to reset the password too many times,
91
    // so that a malicious actor cannot try too many emails, too see if they have
92
    // accounts or to increase the AWS/SendGrid/etc bill.
93
    //
94
    // How many times in any given time period should the user be allowed to
95
    // attempt a password reset? Take into account that user might wrongly
96
    // type an email at first, so at least allow one more try.
97
    // Defaults to 3,10 - 3 times in 10 minutes.
98
    'password_recovery_throttle_access' => '3,10',
99
100
    /*
101
    |--------------------------------------------------------------------------
102
    | Authentication
103
    |--------------------------------------------------------------------------
104
    */
105
106
    // Fully qualified namespace of the User model
107
    'user_model_fqn' => config('auth.providers.users.model'),
108
    // 'user_model_fqn' => App\User::class, // works on Laravel <= 7
109
    // 'user_model_fqn' => App\Models\User::class, // works on Laravel >= 8
110
111
    // The classes for the middleware to check if the visitor is an admin
112
    // Can be a single class or an array of classes
113
    'middleware_class' => [
114
        App\Http\Middleware\CheckIfAdmin::class,
0 ignored issues
show
The type App\Http\Middleware\CheckIfAdmin 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...
115
        \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
116
        \Backpack\CRUD\app\Http\Middleware\AuthenticateSession::class,
117
        // \Backpack\CRUD\app\Http\Middleware\UseBackpackAuthGuardInsteadOfDefaultAuthGuard::class,
118
    ],
119
120
    // Alias for that middleware
121
    'middleware_key' => 'admin',
122
    // Note: It's recommended to use the backpack_middleware() helper everywhere, which pulls this key for you.
123
124
    // Username column for authentication
125
    // The Backpack default is the same as the Laravel default (email)
126
    // If you need to switch to username, you also need to create that column in your db
127
    'authentication_column' => 'email',
128
    'authentication_column_name' => 'Email',
129
130
    // Backpack assumes that your "database email column" for operations like Login and Register is called "email".
131
    // If your database email column have a different name, you can configure it here. Eg: `user_mail`
132
    'email_column' => 'email',
133
134
    // The guard that protects the Backpack admin panel.
135
    // If null, the config.auth.defaults.guard value will be used.
136
    'guard' => 'backpack',
137
138
    // The password reset configuration for Backpack.
139
    // If null, the config.auth.defaults.passwords value will be used.
140
    'passwords' => 'backpack',
141
142
    // What kind of avatar will you like to show to the user?
143
    // Default: gravatar (automatically use the gravatar for their email)
144
    // Other options:
145
    // - null (generic image with their first letter)
146
    // - example_method_name (specify the method on the User model that returns the URL)
147
    'avatar_type' => 'gravatar',
148
149
    // Gravatar fallback options are 'identicon', 'monsterid', 'wavatar', 'retro', 'robohash', 'blank'
150
    // 'blank' will keep the generic image with the user first letter
151
    'gravatar_fallback' => 'blank',
152
153
    /*
154
    |--------------------------------------------------------------------------
155
    | File System
156
    |--------------------------------------------------------------------------
157
    */
158
159
    // Backpack\Base sets up its own filesystem disk, just like you would by
160
    // adding an entry to your config/filesystems.php. It points to the root
161
    // of your project and it's used throughout all Backpack packages.
162
    //
163
    // You can rename this disk here. Default: root
164
    'root_disk_name' => 'root',
165
166
    /*
167
    |--------------------------------------------------------------------------
168
    | Application
169
    |--------------------------------------------------------------------------
170
    */
171
172
    // Should we use DB transactions when executing multiple queries? For example when creating an entry and it's relationships.
173
    // By wrapping in a database transaction you ensure that either all queries went ok, or if some failed the whole process
174
    // is rolled back and considered failed. This is a good setting for data integrity.
175
    'useDatabaseTransactions' => false,
176
177
    /*
178
    |--------------------------------------------------------------------------
179
    | Backpack Token Username
180
    |--------------------------------------------------------------------------
181
    |
182
    | If you have access to closed-source Backpack add-ons, please provide
183
    | your token username here, if you're getting yellow alerts on your
184
    | admin panel's pages. Normally this is not needed, it is
185
    | preferred to add this as an environment variable
186
    | (most likely in your .env file).
187
    |
188
    | More info and payment form on:
189
    | https://www.backpackforlaravel.com
190
    |
191
    */
192
193
    'token_username' => env('BACKPACK_TOKEN_USERNAME', false),
194
];
195