Skip to content

Commit

Permalink
Added security checker command
Browse files Browse the repository at this point in the history
  • Loading branch information
llaski committed Sep 11, 2018
1 parent ef4d873 commit f898772
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ _Inspired by [Adam Wathan](https://github.com/adamwathan/laravel-preset) among o
- Adds [barryvdh/laravel-debugbar](https://github.com/barryvdh/laravel-debugbar) for debugging
- Adds [codedungeon/phpunit-result-printer](https://github.com/mikeerickson/phpunit-pretty-result-printer) for nicer console output when running phpunit tests
- Adds [jtant/laravel-env-sync](https://github.com/JulienTant/Laravel-Env-Sync) along with githooks for pre-push and post-checkout to keep your env file in sync. [Credit to the great article by Caleb Porzio](https://tighten.co/blog/dot-env-files-the-silent-killer)
- Adds [sensiolabs/security-checker](https://github.com/sensiolabs/security-checker) to check for package dependencies with security vunerabilites. Run with `composer run-script security-check`.
- Sets up a `Models` folder within your `app` directory and moves the default `User.php` class there (also updates all references from `App\User` to `App\Models\User`)
- Adds some testing helpers & speed improvements
+ Adds `assertContains`, `assertNotContains` and `assertEquals` assertion methods for Eloquent Collections
Expand Down
4 changes: 4 additions & 0 deletions src/Preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ protected static function updateComposerDevPackageArray(array $packages)
return array_merge([
'barryvdh/laravel-debugbar' => '~3.2',
'codedungeon/phpunit-result-printer' => '~0.19',
'sensiolabs/security-checker' => "^4.1",
], Arr::except($packages, [
]));
}
Expand All @@ -158,6 +159,9 @@ protected static function updateComposerScriptsArray(array $scripts)
'post-install-cmd' => [
"@php artisan env:check",
],
'check-security' => [
"vendor/bin/security-checker security:check",
],
]);
}

Expand Down

0 comments on commit f898772

Please sign in to comment.