PHP code example of thomasderooij / laravel-modules

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

    

thomasderooij / laravel-modules example snippets

bash
php artisan module:init
php artisan migrate
bash
php artisan module:new <module-name>
bash
php artisan module:deactivate <module-name>
bash
php artisan module:activate <module-name>
bash
php artisan module:unset
bash
php artisan module:check
bash
php artisan module:add-dependency <module-name>
bash
php artisan migrate <-- Will migrate based on your dependencies
php artisan migrate --modules=<module-1>,<module-2>....
php artisan migrate:fresh <-- Will migrate based on your dependencies
php artisan migrate:fresh --modules=<module-1>,<module-2>....