GIT:https://github.com/sunshinev/laravel-gii
Suitable for fast B-side background development
According to the MySQL table structure, the corresponding project files such as Model, Observer, Controller, View, and Route are generated, and the complete CRUD background can be automatically created by simply clicking the mouse.
composer require sunshinev/laravel-gii -vvv
This operation will release the assets static file to the public directory
php artisan vendor:publish
select
Tag: laravel-gii
http:[domain]/gii/model
- Table name (supports drop-down selection)
- Model class name (want to create a model class, including the namespace)
- The parent class of the model inheritance (if Mongo can inherit
Jenssegers\Mongodb\Eloquent\Model, MySQL usesIlluminate\Database\Eloquent\Model)
A list of generated files, blue for new files, red for existing files but different, white for existing files.
CRUD creation depends on the model created before.
This operation will be generated at the same time:
- route
- controller
- views
- Controller name (including namespace)
- The previously created model class
This page contains the ability:
- list
- Pagination
- Search
- delete + batch delete
- preview
- Details
- Edit
Cancel button to prevent accidental deletion
- If the Model is generated, the default configuration will be used in env. If you need to adjust, please modify the Model file.
The template generated by the project creation needs to rely on the [github:laravel-fe-render] (https://github.com/sunshinev/laravel-fe-render) project as a template parsing.
The background page depends on the compiled app.js ["github:base-fe"] (https://github.com/sunshinev/base-fe)







