Docs · Packagist · Changelog · Contributing
العربية • Deutsch • English • Español • Français • Italiano • 日本語 • 한국어 • Nederlands • Polski • Português (BR) • Русский • Türkçe • 简体中文
Saddle turns your Eloquent models into a polished admin panel. You describe each model once, as a PHP resource class with a form and a table, and Saddle builds the list, create, edit and view screens, the search, the filters and the actions. It renders with Inertia and Vue, uses your existing Laravel login and policies, and stays out of the rest of your app.
|
Sortable, searchable columns with badges and booleans, filters, row actions and bulk actions with confirmation. Export the current view to CSV, or import a CSV through the same validation your form uses. |
|
|
Eleven field types, from text and selects to searchable relation pickers, file uploads and Markdown. Arrange them in sections, grids and tabs. Validation, visibility and saving all follow the same field definitions. |
|
A resource is plain PHP. Drop it in |
class HorseResource extends Resource
{
public static string $model = Horse::class;
public static function form(Form $form): Form
{
return $form->schema([
Text::make('name')->required(),
BelongsTo::make('rider')->searchable(),
Toggle::make('is_saddled'),
]);
}
public static function table(Table $table): Table
{
return $table->columns([
TextColumn::make('name')->sortable()->searchable(),
BooleanColumn::make('is_saddled'),
]);
}
} |
|
Resources
|
Forms
|
Tables
|
|
Actions
|
Relations
|
Dashboard
|
|
Access
|
Multi-tenancy
|
Data
|
|
Look and language
|
Plugins
|
Developer experience
|
Requires PHP 8.4+ and Laravel 11.48+, 12 or 13.
composer require saddlephp/saddlephp
php artisan saddle:install
php artisan saddle:resource HorseResource --model=HorseSign in through your app's login, register a policy for the model, then visit /admin. Run php artisan saddle:upgrade after each package update. The getting started guide walks through each step.
| Building | Resources · Fields · Form layout · Tables · Filters · Actions · Relation managers |
| Panel | Dashboard widgets · Global search · Notifications · Soft deletes · Import and export |
| Running it | Authorization · Multi-tenancy · Tenancy extras · Configuration · Theming · Localization |
| Extending | Plugins · Testing helpers · Contributing · Security |
Saddle is open-source software licensed under the MIT license.
