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