This file contains hidden or 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 | |
use LaracraftTech\LaravelUsefulTraits\UsefulEnums; | |
enum PaymentType: int | |
{ | |
use UsefulEnums; | |
case Pending = 1; | |
case Failed = 2; |
This file contains hidden or 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 | |
use LaracraftTech\LaravelUsefulTraits\UsefulScopes; | |
DB::table('scope_test_table')->insert([ | |
'foo' => 'foo', | |
'bar' => 'bar', | |
'quz' => 'quz', | |
]); |
This file contains hidden or 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
var myHeading = document.querySelector('h1'); | |
myHeading.textContent = 'Hallo Welt!'; |
This file contains hidden or 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 | |
SAIL=vendor/bin/sail | |
EXECUTOR=$SAIL | |
SAILCHECK=$($SAIL php -v 2>&1 >/dev/null) | |
if [[ $SAILCHECK == *"Sail is not running."* ]] || [[ $SAILCHECK == *"Docker is not running."* ]]; then | |
EXECUTOR=php | |
fi |
NewerOlder