๐
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 | |
| declare(strict_types=1); | |
| use Illuminate\Database\Migrations\Migration; | |
| use Illuminate\Support\Facades\DB; | |
| return new class extends Migration | |
| { | |
| public function up(): void |
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
| function h() | |
| { | |
| local project=${1:-"code/default-project"} | |
| ( cd ~/Homestead && vagrant ssh -c "cd $project && exec bash -i" ) || \ | |
| ( cd ~/Homestead && vagrant up && vagrant ssh -c "cd $project && exec bash -i" ) | |
| } |
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
| <button | |
| :disabled="remainingSeconds > 0" | |
| onclick="history.back()" | |
| x-data="helpers.countdown({secondsToWait:{{ $exception->getHeaders()['Retry-After'] ?? 60 }}})" | |
| x-init="init()"> | |
| Retry <span x-text="countdown"></span> | |
| </button> | |
| <script type="text/javascript"> |
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 | |
| namespace App\Domain\Shared; | |
| /** | |
| * The unsigned integer obfuscator. | |
| * | |
| * @see https://github.com/marekweb/opaque-id | |
| * @see https://stackoverflow.com/a/51701466/1968492 | |
| */ |
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 | |
| /** | |
| * Abstract implementation of a cached item. | |
| * | |
| */ | |
| abstract class AbstractCachedItem | |
| { | |
| /** | |
| * Retrieve the key where the item is stored in. |
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
| # app/validation/AbstractValidator.php | |
| <?php namespace YourApp\Validation; | |
| /** | |
| * Abstract implementation of a validator. | |
| * | |
| * @author Andrea Marco Sartori | |
| */ | |
| abstract class AbstractValidator implements ValidatorInterface |