当前位置:网站首页>Dcat Admin installation
Dcat Admin installation
2022-07-30 06:32:00 【Dragon Nine^】
- Introduction:
Dcat Admin is a back-end system construction tool based on the secondary development of laravel-admin. It can quickly build a full-featured and high-value back-end system with very little code.It supports one-click generation of CURD code on the page, and has built-in rich common background components. It can be used out of the box, allowing developers to bid farewell to redundant HTML code, and is very friendly to back-end developers.
- Environment:
- PHP >= 7.1
- Laravel 5.5.0 ~ 9.*
- Fileinfo PHP Extension -----PHP extension xp.cn software-website-create site-management-php extension-fileinfo
- Install:
- composer create-project --prefer-dist laravel/laravel project name -----Enter the composer command to install the laravel framework, the framework version needs to be >=5.5.0
- Modify configuration file

- Install dcat-admin
Switch to the installed project and run the command
composer require dcat/laravel-admin:"2.*" -vvv
- Publish resources
php artisan admin:publish
This command will generate a configuration file config/admin.php, in which you can modify the installation address, database connection, and table name. It is recommended to use the default configuration.
- Execute the migration command -----personal understanding, executing this command will generate the data table required by Dcat Admin
php artisan admin:install
Executing this step command may report an error Specified key was too long ... 767 bytes, this error occurs because the migration file of the laravel framework will create the larabe framework configuration The default is utf-8mb4, and the length of the generated field exceedsThe length of mysql default utf-8.
Solve the problem: add the code \Schema::defaultStringLength(191); to the boot method of the app/Providers/AppServiceProvider.php file, then delete all the data tables in the database, and re-run php artisan admin:install command will do.
- pseudo-static
location / {
try_files $uri $uri/ /index.php?$query_string;
}
边栏推荐
猜你喜欢
随机推荐
CTF之misc-图片隐写
使用Nodejs搭建Web Server(入门教程)
MySQL数据库之JDBC编程
C语言(1)
TypeError The view function did not return a valid response. The function either returned None 的解决
‘kaggle视频游戏销售数据的可视化和分析‘项目实现
EOF的用法——while(scanf(“%d“,&num)!=EOF)
典型线程问题综合演示
分支和循环语句
871.最低加油次数(动态规划)
php实现数据库的增删查改操作-教务管理系统
三子棋游戏实现(c语言)
2022CISCNmisc
函数解剖——深挖getchar()与putchar()
I/O多路复用技术
P3 元宝第三天的笔记
条件变量解决生产者消费者问题
【墨者学院】身份认证失效漏洞实战
通信中间件 Fast DDS 基础概念简述与通信示例
P3 元宝第六单元笔记









