Search by

camanru / fastleo

Camanru

Admin panel for Laravel sites: each section is described by a single resource class

Package info

github.com/Camanru/fastleo

Homepage

pkg:composer/camanru/fastleo

Statistics

Installs: 371

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

4.6.0 2026-10-31 19:35 UTC

README

An admin panel for Laravel sites. Each admin section is described by a single resource class: fields, list, permissions. The interface is prebuilt (Blade, Tailwind, Alpine.js), so your site does not need npm.

The admin interface and the documentation in docs/ are in Russian.

What's included:

  • Sections: a list with search, filters, sorting and pagination; a form with tabs and columns; a detail view, trash, manual ordering and trees; per-record and bulk actions; Excel/CSV export and import.
  • 35 field types and custom fields: text, numbers, dates, choices, relations (BelongsTo, BelongsToMany, HasMany, HasOne), images with WebP variants, files, gallery, rich text editor, Markdown, JSON fields (Repeater, KeyValue, the Blocks page builder), SEO, translatable fields.
  • Admin environment: a dashboard with widgets, site settings, custom pages, an activity log with rollback, an error log, notifications with Telegram and Max bots, Ctrl+K search, sitemap and robots.txt, closing the site for visitors, a file manager, and an optional connection to the SoftNetica site maintenance service.
  • Security: a separate login with rate limits, two-factor authentication, permissions via model Policies, only declared fields are written, upload protection (details).
  • Claude: a skill and Laravel Boost guidelines, the fastleo:doctor and fastleo:inspect commands, an MCP server — you can ask for a section in a single sentence (details).

Dark mode and mobile layout work out of the box.

Coming from 2.x or 3.0? 4.0 is a new admin panel, not an upgrade of the old one — sections are described again as classes and data formats change; see the migration guide. Moving from another admin panel (MoonShine, a hand-made one)? See moving to fastleo. What's new — CHANGELOG.

Requirements

  • PHP 8.4 or newer
  • Laravel 13
  • A queue is optional: with php artisan queue:work images, imports and notifications are processed in the background, without it — during the request

Installation in 5 minutes

composer require camanru/fastleo
php artisan fastleo:install

Enable admin access in your user model:

use Fastleo\Auth\FastleoUser;
use Fastleo\Auth\HasFastleoAccess;

class User extends Authenticatable implements FastleoUser
{
    use HasFastleoAccess;
}

Add the fastleo_admin column and create an administrator:

php artisan migrate
php artisan fastleo:user admin@example.com

Open https://example.com/fastleo and log in.

Your first section

A section is a class in app/Fastleo. The command below creates a stub with fields based on the table columns; then adjust the labels and the icon — you will get something like this:

php artisan fastleo:make-resource Doctor --generate
// app/Fastleo/DoctorResource.php
namespace App\Fastleo;

use App\Models\Doctor;
use Fastleo\Fields\Text;
use Fastleo\Fields\Toggle;
use Fastleo\Resource;

final class DoctorResource extends Resource
{
    protected static string $model = Doctor::class;

    protected static ?string $label = 'Doctors';

    protected static ?string $singular = 'Doctor';

    protected static string $icon = 'stethoscope';

    public function fields(): array
    {
        return [
            Text::make('name', 'Name')->required()->searchable()->sortable(),
            Text::make('specialty', 'Specialty'),
            Toggle::make('is_active', 'Show on the site'),
        ];
    }
}

The section appears in the menu and opens at /fastleo/doctors. The fields must be in the model's $fillable.

Check the result with php artisan fastleo:doctor — it reports mistakes in sections and site setup (commands). Without a Policy on the model, any admin has full access to the section (authorization).

Documentation

Reading order with short descriptions (in Russian): docs/README.md. Practical answers with code: FAQ.

License

MIT. Icons — Lucide (ISC).