Download the PHP package vmorozov/laravel_admin_generator without Composer
On this page you can find all versions of the php package vmorozov/laravel_admin_generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vmorozov/laravel_admin_generator
More information about vmorozov/laravel_admin_generator
Files in vmorozov/laravel_admin_generator
Package laravel_admin_generator
Short Description This package is made to speed up development of admin panel for your laravel project
License MIT
Informations about the package laravel_admin_generator
Laravel Admin Panel Generator
This package is made for speeding up development of admin panel for your Laravel project.
It helps you to handle common tasks in admin panel development for your project.
Features
- Quick CRUD Generation
- Working with different field types
- Handling relationships
- Search
- Export Data to xls, csv file
- Using default Order By and Where conditions
- Ability to add additional buttons to each list item
- Files uploading to Model column
- Files uploading using spatie/laravel-medialibrary package
1. Installation
composer require vmorozov/laravel_admin_generator
php artisan vendor:publish
and selectVmorozov\LaravelAdminGenerator\AdminGeneratorServiceProvider
to publish all needed files for admin panel.
2. Setup
1. Create Controller
2. Add record to routes/admin.php
3. (Optional) Setup fields
Available field types:
- text - for simple input type="text"
- textarea - for simple textarea
- number - for input type="number"
- email - for input type="email"
- date - for input type="date"
- datetime - for input type="datetime"
- file - for input type="file"
- select - for one-to-one relationship via select
- select_multiple - for many-to-many relationships via select multiple
in Model
In Controller
3. Add link to the sidebar
Open file resources/views/vendor/vmorozov/laravel_admin_generator/layouts/sidebar.blade.php and add your links to the generated admin panel endpoints.
3. Advanced Usage
Add default order by and where clauses to the list query
Add additional button to each item in list
Search
To add search functionality you should just add searchable param to the field setup
Working with spatie/laravel-medialibrary
To start using this package in admin panel install package.
Than you should add additional setups to your model:
There are tho kinds of available collections setups
- Simple collection for multiple files
- Collection for single file (Such as avatar image of user, main image of product, etc).
To make collection single use
'single_file' => true
parameter.
All versions of laravel_admin_generator with dependencies
almasaeed2010/adminlte Version 2.4.*
illuminate/database Version >=5.3
illuminate/http Version >=5.3
illuminate/routing Version >=5.3
illuminate/support Version >=5.3
maatwebsite/excel Version ^3.1
spatie/laravel-medialibrary Version >=7.1
vmorozov/laravel-file-uploads Version ^1.1