PHP code example of liberusoftware / module-cms-core

1. Go to this page and download the library: Download liberusoftware/module-cms-core 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/ */

    

liberusoftware / module-cms-core example snippets


$manager = app(\Liberu\Cms\Contracts\Module\ModuleManagerInterface::class);

$manager->isEnabled('hello');   // bool
$manager->enable('hello');      // throws if a dependency is missing/disabled
$manager->disable('hello');     // throws if foundational or an enabled module needs it
$manager->bootOrder();          // ['contracts-first', ..., 'dependents-last']

'disabled_modules' => ['hello'],
bash
php artisan cms:make-module Portfolio
composer update liberusoftware/cms-portfolio
php artisan migrate