PHP code example of mrclutch / servio

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

    

mrclutch / servio example snippets


'providers' => [
    // Other service providers...
    Mrclutch\Servio\Providers\ServioServiceProvider::class,
],



return [
    'User' => [
        'table' => 'users',
        'dto' => [
            'fields' => [
                'name' => 'ed',
            ],
        ],
        'resource' => [
            'fields' => [
                'id',
                'name',
                'email',
            ],
        ],
    ],
];
bash
php artisan vendor:publish --provider="Mrclutch\Servio\Providers\ServioServiceProvider"
bash
php artisan make:service YourServiceName