PHP code example of rpvirtual / laravel-api-module

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

    

rpvirtual / laravel-api-module example snippets


'providers' => [
    Rpvirtual\LaravelApiModule\LaravelApiModuleServiceProvider::class,
],
bash
php artisan moduleapi:install
bash
php artisan moduleapi:make NombreModulo
bash
php artisan moduleapi:make NombreModulo --resource
bash
Modules/
└── User/
    ├── app/
    │   ├── Controllers/UserController.php
    │   ├── Models/User.php
    │   ├── Services/UserService.php
    │   ├── Traits/UserModelTrait.php
    │   └── Providers/UserServiceProvider.php
    ├── database/
    │   ├── migrations/
    │   ├── seeders/
    │   └── factories/
    ├── routes/api.php
    ├── config/config.php
    └── tests/
        ├── Feature/UserControllerTest.php
        └── Unit/UserServiceTest.php


---