Search by

camanru / fastleo

Camanru

Laravel panel for Eloquent models: admin panels, CRMs and back offices, each section described by a single resource class

Package info

github.com/Camanru/fastleo

Homepage

pkg:composer/camanru/fastleo

Statistics

Installs: 440

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

4.10.3 2026-11-12 15:49 UTC

README

A Laravel package for building interfaces to work with your Eloquent models: a site admin panel, a CRM, an internal back office. Each section is described by a single resource class: fields, list, permissions. The interface is prebuilt (Blade, Tailwind, Alpine.js), so your application does not need npm.

Fastleo runs at /fastleo next to your site, on its own subdomain, or as the whole application at the domain root — for example a CRM with the dashboard at / and sign-in at /login (where to place it).

The panel 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; CSV export and import.
  • 37 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.
  • Panel environment: a dashboard with widgets, site settings, custom pages, an error log, notifications with Telegram and Max bots, publishing to Telegram and Max channels, 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, an optional "sign in as" for owners, 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. The notification bell, notification bots and publishing are off by default — how to switch them on.

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 with the GD extension (JPEG and WebP support: every uploaded picture goes through it) and, recommended, exif (rotates phone photos)
  • Laravel 13.32 or newer
  • 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

fastleo:install connects your app/Models/User.php to the admin panel: it adds the FastleoUser interface and the HasFastleoAccess trait and keeps everything else. If the model is unusual and the command cannot change it, it says so — add them by hand (example):

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

class User extends Authenticatable implements FastleoUser
{
    use HasFactory, HasFastleoAccess, Notifiable;
}

Add the fastleo_admin column and the package tables, link the public disk (uploaded files open from public/storage) and create the first user:

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

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

fastleo:install also asks what the site needs: a basic install (the panel only) or a custom one with ready-made modules (contacts, pages, landing page, news, site menu, reviews, portfolio, FAQ, services, price list, team, branches, licenses and certificates, partners, online store — a panel section, model and migration copied into your project as your own code, plus an optional public part: routes, controllers and plain Blade templates without styling, which the install asks about), and offers to run migrations and create the first user. Pass the answers as flags to skip the questions (--type=basic, or --modules=pages,news --setup --admin-email=…); add a module later with php artisan fastleo:module (modules).

Your first section

A section is a class in app/Fastleo on top of an ordinary model and table. Create the model and the migration, migrate, then generate a stub with fields based on the table columns; adjust the labels and the icon — you will get something like this:

php artisan make:model Product -m                      # model and migration: add the columns, then migrate
php artisan migrate
php artisan fastleo:make-resource Product --generate   # app/Fastleo/ProductResource.php
// app/Fastleo/ProductResource.php
namespace App\Fastleo;

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

final class ProductResource extends Resource
{
    protected static string $model = Product::class;

    protected static ?string $label = 'Products';

    protected static ?string $singular = 'Product';

    protected static string $icon = 'package';

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

The section appears in the menu and opens at /fastleo/products. 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 user 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).