当前位置:网站首页>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;
}
边栏推荐
猜你喜欢
随机推荐
典型线程问题综合演示
别找了,你要的C语言“数组”在这里
php漏洞全解
条件变量解决生产者消费者问题
MySQL数据库之JDBC编程
关于浅拷贝和深拷贝,草稿闲了写
union中有struct的情况-从内存分析
技术人该访问的论坛
使用Context API维护全局状态
uncategorized SQLException; SQL state [null]; error code [0]; sql injection violation, syntax error
CTF之misc-其他类型隐写
CTF之misc-日志分析
0基础玩转C语言—初识C语言(上)
524.通过删除字母匹配到字典里最长单词
uni-app:关于自定义组件、easycom规范、uni_modules等问题
C语言必会15个文件函数
最新Redistemplate配置及使用,附带操作工具类,测试类
sqli-labs靶场 SQL注入学习 Less-1
浏览器缓存
MySQL存储引擎
![[PASECA2019]honey_shop](/img/8f/7161a63dab10dc02fef1fea075401a.png)







