PHP code example of yangze / laravel-modules-helper

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

    

yangze / laravel-modules-helper example snippets


composer 

Yangze\ModulesHelper\ModulesHelperServiceProvider::class,

php artisan vendor:publish --tag Yangze\ModulesHelper\ModulesHelperServiceProvider

php artisan make:module Common

php artisan module:api common Api/CommonNewsController --model App\\Models\\CommonNews

Route::resource('common/news', 'CommonNewsController');