sakanjo/filament-layout-inspector

Visually examine the layout of your Filament app.

v1.0.0 2024-05-04 12:24 UTC

This package is auto-updated.

Last update: 2024-05-04 12:26:51 UTC


README

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