PHP code example of coreblue / moat

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

    

coreblue / moat example snippets


//app/http/Kernel.php
protected $middlewareGroups = [
    'web' => [
        \CoreBlue\Moat\Middleware\ApplyMoat::class,
    ],
];
bash
php artisan moat:create
bash
php artisan moat:up
bash
php artisan moat:down
bash
php artisan moat:password
bash
php artisan moat:status