PHP code example of recranet / craft-recranet-booking

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

    

recranet / craft-recranet-booking example snippets




return [
    '*' => [
        'showCpNav' => true,
    ],
    'dev' => [
        'showCpNav' => true,
    ],
    'staging' => [
        'showCpNav' => false,
    ],
    'production' => [
        'showCpNav' => false,
    ],
];
bash 
composer 
bash
ddev composer update recranet/craft-recranet-booking
ddev php craft migrate/up --plugin=_recranet-booking
ddev php craft clear-caches/all
bash
ddev php craft _recranet-booking/delete

ddev php craft _recranet-booking/delete/facilities
ddev php craft _recranet-booking/delete/accommodations
ddev php craft _recranet-booking/delete/locality-category
ddev php craft _recranet-booking/delete/accommodation-category
ddev php craft _recranet-booking/delete/package-specification-category