Skip to content

Instantly share code, notes, and snippets.

@spresnac
Created November 7, 2022 08:38
Show Gist options
  • Save spresnac/d563e5896c64a64b336328c1fa751a11 to your computer and use it in GitHub Desktop.
Save spresnac/d563e5896c64a64b336328c1fa751a11 to your computer and use it in GitHub Desktop.
Default laravel excludes for phpinsights
/**
* In your config/insights.php
*/
// ...
'exclude' => [
'app/Actions/Fortify',
'app/Actions/Jetstream',
'app/Console/Kernel.php',
'app/Http/Middleware/RedirectIfAuthenticated.php',
'app/Http/Middleware/EncryptCookies.php',
'app/Http/Middleware/PreventRequestsDuringMaintenance.php',
'app/Http/Middleware/VerifyCsrfToken.php',
'app/Models/Team.php',
'app/Models/TeamInvitation.php',
'app/Exceptions/Handler.php',
'app/Policies/TeamPolicy.php',
'app/Providers/AppServiceProvider.php',
'app/Providers/AuthServiceProvider.php',
'app/Providers/RouteServiceProvider.php',
'app/Providers/EventServiceProvider.php',
'app/Providers/FortifyServiceProvider.php',
'app/Providers/JetstreamServiceProvider.php',
],
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment