PHP code example of amdadulshakib / cmsaddoncommands

1. Go to this page and download the library: Download amdadulshakib/cmsaddoncommands 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/ */

    

amdadulshakib / cmsaddoncommands example snippets


php artisan make:addon {AddonName}

php artisan make:addon Blog

php artisan addon:model {AddonName} {ModelName}

php artisan addon:model {AddonName} {ModelName} -m

php artisan addon:model Blog Post -m

php artisan addon:controller {AddonName} {ControllerName}

php artisan addon:controller Blog PostController

php artisan addon:migration {AddonName} {MigrationName}

php artisan addon:migration Blog create_posts_table

php artisan addon:migrate {AddonName}

php artisan addon:migrate Blog

php artisan addon:migrate:rollback {AddonName}

php artisan addon:migrate:rollback Blog