Download the PHP package exeplor/ampere without Composer
On this page you can find all versions of the php package exeplor/ampere. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ampere
Ampere
Ampere is a simple and flexible admin panel for Laravel framework.
Sections
- Installation
- Configuration
- Routing
- Menu
- Controller
- ACL
- Views
- Grid
- Forms
Installation
Install package
Add service provider to app.php
Create new ampere space and follow the instructions
Run migrations after first install
Configuration
Routing
Ampere have dynamic route generation. All routes are built automatically depending on the name of the controller and parent folder. Also you can customize route using controller and method annotations.
Now you can get any route by specific controller method
Menu
Menu will be generated automatically. You can modify your menu in menu config file:
Use annotations in controller methods for creating menu items.
Controller
In most cases you will need to create CRUD controller. Ampere has special command to automate this task.
Any CRUD controller have model. Ampere analyzes the table structure and model structure, creating validation and relationships based on this data. Also this method generate view.
ACL
From the box you have full ACL for all routes, menu items in all controllers with their method. You can manage roles and permissions from the controller which created on installation.
Views
For render view in Ampere space you need to call render() function in you controller.
View example
You can create new Ampere page using command:
And your page will be created in /resources/views/
Grid
It's a default Ampere library for data search. Basic exmaple:
Also you can use relation values to display and search.
Render your grid in view
Column description
Add actions to your grid
Forms
Build form with basic fields:
All components works with validation errors. You can use your own components without builder.