PHP code example of jimbojsb / laravel-cloudflare-access

1. Go to this page and download the library: Download jimbojsb/laravel-cloudflare-access 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/ */

    

jimbojsb / laravel-cloudflare-access example snippets


'user_model' => App\Models\User::class,

protected $casts = [
    'groups' => 'array',
];

use Jimbojsb\CloudflareAccess\Http\Controllers\LoginController;

Route::get('/login', [LoginController::class, 'login']);

Route::middleware('auth')->group(function () {
    Route::get('/dashboard', [DashboardController::class, 'index']);
});
bash
php artisan vendor:publish --tag=cloudflare-access-config
bash
php artisan vendor:publish --tag=cloudflare-access-migrations
php artisan migrate