PHP code example of aimeos / pagible

1. Go to this page and download the library: Download aimeos/pagible 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/ */

    

aimeos / pagible example snippets


\Illuminate\Support\Facades\Schedule::command('cms:publish')->daily();

\Illuminate\Support\Facades\Schedule::command('model:prune', [
    '--model' => [
        \Aimeos\Cms\Models\Page::class,
        \Aimeos\Cms\Models\Element::class,
        \Aimeos\Cms\Models\File::class
    ],
])->daily();

\Aimeos\Cms\Tenancy::$callback = function() {
    return tenancy()->initialized ? tenant()->getTenantKey() : '';
};

\Aimeos\Cms\Permission::$callback = function( string $action, ?\App\Models\User $user ) : bool {
    if( /* check access */ ) {
        return true;
    }

    return false;
};
bash
composer req aimeos/pagible
php artisan cms:install
json
"post-update-cmd": [
    "@php artisan vendor:publish --force --tag=admin --tag=public",
    ...
],
bash
php artisan cms:user [email protected]
bash
php artisan cms:user --disable [email protected]