Skip to content

defstudio/laravel-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-tools

Installation

You can install this package via Composer:

composer require defstudio/laravel-tools

Setup

Publishing Assets

[TODO]

Dev dependencies installation

additionally, you can install our opinionated dev dependencies for laravel projects

composer require --dev defstudio/laravel-dev-dependencies -W

and add the following scripts to composer.json

"php-cs-fixer": "php-cs-fixer fix -v --config=./.php-cs-fixer.php",
"lint": "@php-cs-fixer",
"test:lint": "@php-cs-fixer --dry-run",
"test:types": "php ./vendor/bin/phpstan analyse --ansi --memory-limit=-1",
"test:mutation": "./vendor/bin/infection --test-framework=pest --show-mutations",
"test": "php ./vendor/bin/pest --colors=always --parallel",
"update:snapshots": "php ./vendor/bin/pest --colors=always -d --update-snapshots",
"coverage": "php ./vendor/bin/pest --coverage",
"test:all": [
    "@test:lint",
    "@test:types",
    "@test"
]