A lightweight, modern admin dashboard bundle for Symfony applications.
composer require devgeek/beacon-admin
config/packages/beacon_admin.yaml:beacon_admin:
route_prefix: /admin
title: 'My Admin'
menu:
- { label: Dashboard, route: beacon_admin_dashboard, icon: home }
config/routes/beacon_admin.yaml:beacon_admin:
resource: '@BeaconAdminBundle/config/routes/beacon_admin.yaml'
<?php
declare(strict_types=1);
namespace App\Controller\Admin;
use App\Entity\Product;
use Devgeek\BeaconAdmin\Controller\AbstractCrudController;
use Devgeek\BeaconAdmin\Crud\CrudConfig;
final class ProductCrudController extends AbstractCrudController
{
protected function getEntityClass(): string
{
return Product::class;
}
protected function configureCrud(CrudConfig $config): void
{
$config
->fields(['name', 'price', 'category', 'createdAt'])
->sortableFields(['name', 'price', 'createdAt'])
->searchableFields(['name'])
->pageSize(25);
}
}
See the docs/ directory:
MIT
How can I help you explore Laravel packages today?