PHP code example of crixuamg / laravel-simplicate

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

    

crixuamg / laravel-simplicate example snippets



    'providers' => [
        // ...
        CrixuAMG\Simplicate\Providers\SimplicateServiceProvider::class,
    ],


/** @var \CrixuAMG\Simplicate\Services\SimplicateService $service */
$leaveRecords = $service->hrm()
    ->offset(2)
    ->limit(10)
    ->sort('start_date')->descending()
    ->filter(['employee.id' => 'employee:aa24f3857730be716d44e34a3f0f8c3a'])
    ->allLeave();
 bash
php artisan vendor:publish --provider="CrixuAMG\Simplicate\Providers\SimplicateServiceProvider"