PHP code example of hatchyu / laravel-modular-lite

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

    

hatchyu / laravel-modular-lite example snippets


modules/
└── Shop/
    ├── Controllers/
    │   └── Api/
    │       └── ShopController.php
    ├── Models/
    │   └── Product.php
    ├── Requests/
    │   ├── StoreProductRequest.php
    │   └── UpdateProductRequest.php
    ├── Resources/
    │   └── ProductResource.php
    ├── Services/
    │   └── CheckoutService.php
    ├── Database/
    │   ├── Migrations/
    │   ├── Factories/
    │   └── Seeders/
    ├── Routes/
    │   ├── web.php
    │   └── api.php
    ├── Views/
    │   └── index.blade.php
    ├── Providers/
    │   └── ShopServiceProvider.php
    └── Tests/
        └── Feature/
bash
composer dump-autoload
bash
php artisan vendor:publish --tag="modular-lite-config"
bash
php artisan module:make-crud Shop Product
# or shortcut:
php artisan module:crud Shop Product
bash
php artisan module:cache
bash
php artisan module:clear