1. Go to this page and download the library: Download 7ute/directavel 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/ */
// database/directus/collections/some_table.php
/**
* That file will help generating a `some_table`
* entry in the `directus_collections` table
* with only the collection column filled.
**/
return [
/** The other columns of this `directus_collection` entry. */
'attributes' => [],
/** Each field will be its own row in the `directus_fields` table */
'fields' => [],
/**
* The relationships that are not set in the fields
* can be defined here. They will be inserted at
* the end of the `directus_relations` table.
**/
'relations' => [],
]
use SevenUte\Directavel\Facades\Directavel;
Directavel::updateProjectAdmin()
->updateProjectPresets()
->updateThemeCss()
->synchronizeDatabase()
->clearCache();
bash
$ php artisan vendor:publish
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.