View GenerateZiggyTypescriptDefinitionsCommand.php
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
// Copied from https://gist.github.com/iDevelopThings/aa0a288a4075371d875782c72f2c0389 | |
// This command will generate a file in resources/js/ called ziggy-shims.d.ts | |
// Make sure to install @types/ziggy-js for the type definitions used by the file generated | |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Filesystem\Filesystem; |
View Dockerfile
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
FROM --platform=linux/amd64 ubuntu:20.04 | |
# ... Other commands | |
# Install dependencies | |
RUN echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /etc/apt/sources.list \ | |
&& apt-get update \ | |
&& apt-cache policy libssl1.0-dev \ | |
&& apt-get install -y libssl1.0-dev libfontconfig zlib1g libfreetype6 libxrender1 libxext6 libx11-6 \ | |
&& apt-get -y autoremove \ |
View .php-cs-fixer.dist.php
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 | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'@PSR12' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'ordered_imports' => ['sort_algorithm' => 'alpha'], | |
'no_unused_imports' => true, |