PHP code example of alfasix / alfakit-cms
1. Go to this page and download the library: Download alfasix/alfakit-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/ */
alfasix / alfakit-cms example snippets
use AlfaSix\AlfakitCms\CmsPlugin;
$panel->plugin(
CmsPlugin::make()
->siteName('Acme')
->publicRoutes() // serve published pages, sitemap.xml and robots.txt
->adminBar() // "Edit this page" on the public site for editors
->api(), // read-only JSON API
);
bash
composer vendor:publish --tag=alfakit-cms-migrations
php artisan migrate
php artisan storage:link