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-10-20 19:48:47 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