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 | |
$styleCiLaravel = [ | |
'phpdoc_align' => ['align' => 'vertical'], | |
'ordered_imports' => ['sort_algorithm' => 'alpha'], | |
'array_indentation' => true, | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', | |
'operators' => ['=>' => 'align_single_space_minimal'], | |
], |
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
# Quick and easy one line command to setup a global .gitignore file and ignore macOS .DS_store files globally | |
git config --global core.excludesfile "~/.gitignore" && echo .DS_Store >> ~/.gitignore |
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 | |
function getEnvVariablesFrom($filepath){ | |
$envContent = file_get_contents($filepath); | |
$envVariables = array_filter( | |
explode("\n", $envContent), function($value){ | |
return str_contains($value, "=") | |
&& $value !== '' | |
&& !str_starts_with($value, "#"); |
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 | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Process; | |
use Symfony\Component\Console\Command\SignalableCommandInterface; | |
class RunDevCommand extends Command implements SignalableCommandInterface | |
{ |