PHP code example of savannabits / modular

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

    

savannabits / modular example snippets


use Savannabits\Modular\Facades\Modular;

$modules = Modular::allModules();

use Savannabits\Modular\Facades\Modular;

$module = Modular::module('ModuleName');
bash
php artisan modular:install
bash
php artisan modular:make ModuleName
bash
php artisan modular:activate ModuleName
bash
php artisan modular:activate ModuleName
bash
php artisan modular:deactivate ModuleName
bash
php artisan modular:make-controller
bash
php artisan modular:make-model
bash
php artisan modular:make-migration
bash
php artisan modular:make-factory
bash
php artisan modular:make-seeder
bash
php artisan modular:make-policy
bash
php artisan modular:make-request
bash
php artisan modular:make-resource
bash
php artisan modular:make-test
bash
php artisan modular:make-job
bash
php artisan modular:make-command
bash
php artisan modular:make-provider
bash
php artisan modular:make-view