Search by

sz4h / cloudflare

Mello21century

Cloudflare interface

1.2.1 2026-11-01 07:53 UTC

This package is auto-updated.

Last update: 2026-11-01 07:54:05 UTC


README

Install

  • Run
composer require sz4h/cloudflare
  • Run
php artisan vendor:publish --tag=cloudflare
  • Edit the "config/cloudflare.php" file add your email and your apiKey
  • Visit http://site.com/cloud if you enable public access while site.com is your domain name
  • Enable Filament Plugin using
    ->plugins([
        // Add this line
        \Space\Cloudflare\Filament\CloudflarePlugin::make()
            ->navigationIcon('heroicon-o-globe-alt')
            ->navigationGroup('Infrastructure')
            ->navigationSort(5)
            ->slug('dns')
            ->navigationLabel('Domains')
    ]);

*** This is a beta version. Install on your own risk ***

Authorization

Every panel action has its own Space\Cloudflare\Enums\CloudflareAbility. Without a callback, every panel user may run all of them.

\Space\Cloudflare\Filament\CloudflarePlugin::make()
    ->authorizeUsing(fn (CloudflareAbility $ability): bool => auth()->user()->can($ability->value))