Package Data | |
---|---|
Maintainer Username: | jaimeeee |
Maintainer Contact: | hola@jaimeeee.com (Jaime Zaragoza) |
Package Create Date: | 2016-07-25 |
Package Last Update: | 2017-08-07 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:17:08 |
Package Statistics | |
---|---|
Total Downloads: | 90 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 2 |
A Panel for Laravel Websites that provides an easy way to create, edit and delete new objects in your database, with almost no effort in configuration files.
Require this package with Composer:
composer require jaimeeee/laravelpanel
After updating Composer, add the Service Provider to the providers array in config/app.php
:
Jaimeeee\Panel\PanelServiceProvider::class,
If you haven't enabled Laravel's authentification make sure to run the following command:
php artisan make:auth
This will create the necesarry controllers and views to log in.
To copy all the files to your folders and edit them you just need to run the following command:
php artisan vendor:publish --provider="Jaimeeee\Panel\PanelServiceProvider"
This will copy the config file, an example blueprint, and the stylesheet.
The blueprints are Yaml files located in config/panel/
and they represent each entity of your panel.
This is an example blueprint:
class: App\User
icon: fa fa-users
sort:
field: name
order: asc
list:
id: ID
name: Name
email: E-Mail
fields:
name:
label: Name
type: text
placeholder: John Doe
validate: required
email:
label: E-Mail
type: text
placeholder: email@somewebsite.com
validate: required|email