The AdminBundle helps you to create flexible and robust administration application.
It provides PHP attributes or yaml configuration to build views to show, create; update and delete resources. It comes with a native Doctrine ORM integration, and can also be used with any architecture.
The AdminBundle is highly customizable using configuration or with events to allow you tu build dynamic administration interfaces.
composer require lag/adminbundle
If you do not use Symfony Flex, follow those extra steps.
Open a command console, execute the following command in your project directory to install the latest stable version of the bundle:
composer require lag/adminbundle
If you do not use flex, read the extra steps to install the bundle
Import the routing configuration to have the admin generated routes :
# config/routes.yaml
lag_admin:
resource: '@LAGAdminBundle/Resources/config/routing/routing.yaml'
prefix: /admin
# config/packages/lag_admin.yaml
lag_admin:
application:
title: My Little TaunTaun application
# config/admin/resources/article.yaml
article:
entity: App\Entity\Article
actions:
create: ~
edit: ~
list: ~
delete: ~
As new routes are dynamically created, the cache clearing is required (
symfony cache:clear)
Now you could visit http://127.0.0.1:8000/admin/article/list to see a list of your entities.
Yan can visit http://127.0.0.1:8000/app_dev.php/admin/ to see the homepage of your admin interface
To run the admin test suite, run the following :
make tests
Version 0.4 :
How can I help you explore Laravel packages today?