新手安装Laravel-admin的几个问题解决方法汇总

    |     2020年8月26日   |   学习偶记   |     评论已关闭   |    1580

1、安装时候提示如下错误:

新手安装Laravel-admin的几个问题解决方法汇总

解决方法:

官方参考讲解 https://github.com/z-song/laravel-admin/issues/1541

在这地方添加

新手安装Laravel-admin的几个问题解决方法汇总

2、安装过程中提示数据库配置找不到。

先cmd命令行,目录下执行:php artisan config:clear

然后修改地方:

 

3、菜单更改为中文:

 

4、laravel-admin 报错 Disk [admin] not configured, please add a disk config in config/filesystems.php.

在config/filesystems.php中添加:

5、,表单的验证信息还是英文的,那么可以安装Laravel-lang来切换成中文。

先用:php artisan –version 查看laravel版本,然后用composer安装。

Laravel version Composer command
Laravel 8.x composer require laravel-lang/lang:~7.0
Laravel 7.x and new directory names composer require laravel-lang/lang:~7.0
Laravel 7.x composer require laravel-lang/lang:~6.1
Laravel 6.x composer require laravel-lang/lang:~5.0
Laravel 5.8 composer require laravel-lang/lang:~4.0
Laravel 5.1-5.7 composer require laravel-lang/lang:~3.0
Laravel 5 composer require laravel-lang/lang:~2.0
Laravel 4 composer require laravel-lang/lang:~1.0

参考网址:

https://juejin.im/post/6844903872209616910

https://www.cnblogs.com/lonmyblog/p/12697623.html

https://blog.csdn.net/guaiguaiknl/article/details/80332337

 

 

噢!评论已关闭。