This file contains a list with links that I find interesting.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
File::make('File')->disk('public')->hideFromIndex()->rules('required')->storeAs(function () { | |
$file = request()->file('file'); | |
return 'fonts/'.$file->getClientOriginalName(); | |
}), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'." |