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 | |
declare(strict_types=1); | |
/** | |
* ----------------------------------------------------- | |
* Enforce the Laravel Code Style using PHP CS Fixer 3.x | |
* ----------------------------------------------------- | |
* Credits go to Laravel Shift & Andreas Elia. | |
* https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200. | |
**/ |
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
# custom PhpStorm properties (expand/override 'bin/idea.properties') | |
editor.zero.latency.typing=true |
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
-Xms500m | |
-Xmx2048m | |
-Dawt.useSystemAAFontSettings=lcd | |
-Dawt.java2d.opengl=true | |
# Only for people on Mac, it makes Java use an optimised graphics engine. | |
-Dapple.awt.graphics.UseQuartz=true |
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
# add to .zshrc to switch brew php versions | |
alias php82='{ brew unlink [email protected]; brew link php --force --overwrite; } &> /dev/null && php -v' | |
alias php81='{ brew unlink php; brew link [email protected] --force --overwrite; } &> /dev/null && php -v' |
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
Add to | |
~/.gitconfig | |
[alias] | |
forget="! /usr/local/bin/git fetch -p && /usr/local/bin/git branch -vv | awk '/: gone]/{print $1}' | xargs /usr/local/bin/git branch -D" |
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 | |
declare(strict_types=1); | |
namespace Database\Helpers; | |
use Illuminate\Support\Facades\Schema; | |
class Column | |
{ |
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 | |
declare(strict_types=1); | |
namespace Database\Helpers; | |
use Illuminate\Support\Facades\Schema; | |
class ForeignKey | |
{ |
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 | |
trait EnhancedEnum | |
{ | |
/** | |
* Get the enum value from the name. e.g case INVOICE = 'invoice'; will return 'invoice' | |
* | |
* @param string $name | |
* @return static | |
*/ |
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
app()->detectEnvironment(fn () => 'production'); | |
$this->refreshApplication(); |
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 | |
declare(strict_types=1); | |
namespace Tests; | |
use Illuminate\Foundation\Testing\RefreshDatabase as FrameworkRefreshDatabase; | |
use Illuminate\Foundation\Testing\RefreshDatabaseState; | |
trait RefreshDatabase |
NewerOlder