PHP code example of eminiarts / aura-cms
1. Go to this page and download the library: Download eminiarts/aura-cms 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/ */
eminiarts / aura-cms example snippets
namespace App\Aura\Resources;
use Aura\Base\Resource;
class Article extends Resource
{
public static string $type = 'Article';
public static ?string $slug = 'article';
public static function getFields()
{
return [
[
'type' => 'Aura\\Base\\Fields\\Text',
'name' => 'Title',
'slug' => 'title',
'validation' => '