Skip to content

Visually examine the layout of your Filament app.

License

Notifications You must be signed in to change notification settings

sakanjo/filament-layout-inspector

Repository files navigation

↻ Filament layout inspector

Workflow status Laravel v11.x PHP 8.2

Visually examine the layout of your Filament app.

✨ Help support the maintenance of this package by sponsoring me.

Preview

Table of Contents

📦 Install

  1. Install the package via composer:
composer require --dev sakanjo/filament-layout-inspector
  1. Add the plugin's views to your tailwind.config.js file.
content: [
    './vendor/sakanjo/filament-layout-inspector/resources/**/*.blade.php',
]

🦄 Usage

<?php

// ...
use SaKanjo\FilamentLayoutInspector\LayoutInspectorPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(
            LayoutInspectorPlugin::make()
                ->visible(fn () => app()->isLocal())
                ->screens([
                    '4xl' // max-4xl:hidden
                    '5xl' // max-5xl:hidden
                ])
        );
}

💖 Support the development

Do you like this project? Support it by donating

Click the "💖 Sponsor" at the top of this repo.

©️ Credits

📄 License

MIT License © 2023-PRESENT Salah Kanjo