PHP code example of rahasistiyak / laravel-super-artisan

1. Go to this page and download the library: Download rahasistiyak/laravel-super-artisan 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/ */

    

rahasistiyak / laravel-super-artisan example snippets


// config/super-artisan.php
'blueprints' => [
    'my-api' => [
        'description' => 'My custom API resource.',
        'commands' => [
            'make:model {name} -m -f',
            'make:super-request Store{name}Request',
            'make:super-request Update{name}Request',
            'make:super {name} --api',
        ],
    ],
],

// config/super-artisan.php
'workflows' => [
    'my-deploy' => [
        'description' => 'My custom deployment steps.',
        'commands' => [
            'down',
            'migrate --force',
            'db:seed --class=ProductionSeeder',
            'optimize',
            'up',
        ],
    ],
],

// bootstrap/providers.php
return [
    App\Providers\AppServiceProvider::class,
    App\Providers\RepositoryServiceProvider::class, // 👈 Add this
];
bash
php artisan make:super Post
bash
php artisan make:super Post,Comment,Tag
bash
php artisan make:super Post --api
bash
php artisan make:super Post --pattern=repository
bash
php artisan make:super Post --filament
bash
php artisan make:super Post --domain=Blog
bash
php artisan make:super Post --livewire
bash
php artisan make:super Post --force
bash
php artisan run:workflow {workflow} [options]
bash
php artisan make:repository PostRepository --model=Post
bash
php artisan make:service PostService --model=Post