当前位置:网站首页>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;
}
边栏推荐
猜你喜欢
随机推荐
强国杯初赛WP
sqli-labs靶场 SQL注入学习 Less-1
vulnhub-XXE ctf安全真题
海量号码需要保存,如何才能尽可能少地占用内存?
Dcat Admin 安装
CTFSHOW命令执行【web29-web124】未完待续
自定义异常类的使用
EOF的用法——while(scanf(“%d“,&num)!=EOF)
MySQL存储引擎
最新Redistemplate配置及使用,附带操作工具类,测试类
650.只有两个键的键盘(动态规划)
async/await用法详解
记一次Mailpress插件RCE漏洞复现
js方法 reduce 用法
社区版idea 最右侧没有Database怎么办
简述SSRF
操作系统面试整理
人生的第一篇博客(初识代码)
猜数字游戏
let到底会不会造成变量提升

![[网鼎杯 2020 青龙组]AreUSerialz](/img/f2/9aef8b8317eff31af2979b3a45b54c.png)






