statview/filament-satellite

Filament package for Statview

0.5.0 2023-11-01 14:43 UTC

This package is auto-updated.

Last update: 2024-10-30 02:16:28 UTC


README

You should have already installed and configured statview/satellite in your project before using this package.

composer require statview/filament-satellite

Usage

It's important to have one default Filament Panel. You can do so by adding ->default() to one of your panels.

The package contains a Filament plugin. It's easy to add the configuration to you panel.

<?php
use Statview\FilamentSatellite\SatellitePlugin;
// ...
->plugins([
    SatellitePlugin::make(),
])
// ...

Features

One click login

You can enable one click login by adding this to the plugin's config.

use Statview\FilamentSatellite\SatellitePlugin;

SatellitePlugin::make()
    ->oneClickLogin(
        user: fn () => User::first(),
        redirect: fn () => DashboardPage::getUrl(),
    ),

Announcements

Announcements are enabled by default. You can disable them easily by adding this to the plugin's config.

use Statview\FilamentSatellite\SatellitePlugin;

SatellitePlugin::make()
    ->announcements(flag: false);