Require this project in your composer.json file
"sensiolabs/security-checker": "2.x"
Add the following line to app/start/artisan.php:
| #!/bin/bash | |
| # | |
| # This hook will look for code comments marked '//no-commit' | |
| # - case-insensitive | |
| # - dash is optional | |
| # - there may be a space after the // | |
| # | |
| noCommitCount=$(git diff --no-ext-diff --cached | egrep -i --count "(@No|\/\/\s?no[ -]?)commit") | |
| if [ "$noCommitCount" -ne "0" ]; then | |
| echo "WARNING: You are attempting to commit changes which include a 'no-commit'." |
This file contains a list with links that I find interesting.
| <?php | |
| File::make('File')->disk('public')->hideFromIndex()->rules('required')->storeAs(function () { | |
| $file = request()->file('file'); | |
| return 'fonts/'.$file->getClientOriginalName(); | |
| }), |