当前位置:网站首页>DCAT in laravel_ Admin preliminary use record
DCAT in laravel_ Admin preliminary use record
2022-07-29 00:18:00 【Ningmujun】
download laravel frame -> Connect to database , Start the download dcat .
1:
composer require dcat/laravel-admin:"2.*" -vvv
2:
php artisan admin:publish
3:
php artisan admin:install
The above three commands will be executed in app The next one is admin file , Internal route , Controller and other modules .
After the creation, enter { { domain name /admin }} Click login , The account password is initially defaulted admin.
After landing
Click development tools (laravel in env Of documents de_bug Close to close this tool ), Click code generator
Create model table , The table name is database table name , Check create migration file ,( Be careful when creating data tables ) You can check the soft delete and other options below , Do not enter a primary key when creating a data table id, You can write the primary key below id The name of , After the creation is successful, the data table can be generated by performing data migration in the framework .
Click System -》 menu , Create a new module , You Fang has the following content , Create a new menu
After the creation is successful, the controller will be generated
Write resource type in the route ,
There is a set of automatically generated addition, deletion, modification and check system in the controller ,
The list shows :
Delete Add and modify
Refer to the official website :https://learnku.com/docs/dcat-admin/2.x/install/8081#bb5ea0
边栏推荐
猜你喜欢
Field injection is not recommended solution
After SAP Oracle replicates a new instance, the remote connection of the database reports an error ora-01031
JS advanced ES6 ~ es13 new features
Do like and in indexes in MySQL go
SQL实现将多行记录合并成一行
Idea2021.2 installation and configuration (continuous update)
AutoCAD -- import excel tables into CAD and merge CAD
【C】 Replace spaces and realize binary parity bit exchange of integers by macros
动态规划问题(七)
Classification and determination method of Worthington stemxyme
随机推荐
Principle of meter skipping
Do like and in indexes in MySQL go
Leetcode64. Minimum path sum
SQL implementation merges multiple rows of records into one row
110道 MySQL面试题及答案 (持续更新)
Advanced area of attack and defense world web masters ics-06
动态规划问题(五)
curl (7) Failed connect to localhost8080; Connection refused
CV target detection model sketch (2)
递归/回溯刷题(中)
Develop effective Tao spell
Dual for loop optimization
Virtual lab basic experiment tutorial -8. Fourier transform (1)
Leetcode 763. partition labels divide alphabetic intervals (medium)
Oracle create tablespaces and users
Control fillet stroke materialshapedrawable
动态规划问题(二)
动态规划问题(七)
Servlet operation principle_ API details_ Advanced path of request response construction (servlet_2)
Type 1-5 components