PHP code example of nikba / directus-api-laravel
1. Go to this page and download the library: Download nikba/directus-api-laravel 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/ */
nikba / directus-api-laravel example snippets
Nikba\Directus\Laravel\DirectusServiceProvider::class,
public function __construct(Directus $directus)
{
$this->api = $directus;
}
directus() // or directus('connection')
bash
php artisan vendor:publish --provider="Nikba\Directus\Laravel\DirectusServiceProvider"