PHP code example of masgeek / composer-scripts
1. Go to this page and download the library: Download masgeek/composer-scripts library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
masgeek / composer-scripts example snippets
use Masgeek\ComposerScripts\Support\Artisan;
use Composer\Script\Event;
class MyScripts
{
public static function deploy(Event $event): void
{
Artisan::bash
php artisan code:models # 1. regenerate Base model classes
php artisan ide-helper:models --write # 2. add @property docblocks
vendor/bin/pint --dirty # 3. format generated files