美文网首页
安装一款基于laravel6.x vue的框架Lucmsee 踩

安装一款基于laravel6.x vue的框架Lucmsee 踩

作者: 开心弟弟 | 来源:发表于2021-10-19 09:50 被阅读0次

框架介绍

框架名称:lucmsee
框架地址
框架文档

基本的安装我就不介绍了,作者文档里面写的很清楚,咱们直接空降看看遇到的坑

1、php artisan migrate 可能会遇到Class 'App\Providers\Schema' not found
  解决方法:打开\app\Providers\AppServiceProvider.php  
  use Illuminate\Support\Facades\Schema;
  Schema::defaultStringLength(191);//关闭这行代码注释

2、php artisan db:seed
  2.1 会遇到DateTimeInterface报错
    解决办法:打开\app\Models\Model.php  你会发现代码里面use了两次DateTimeInterface 删掉一个就行

  2.2 导入数据时可能会遇到created_at updated_at写入时间失败问题,原因是 laravel7保存时间默认是UTC时间 带TZ,直接保存到数据库timestamp格式会报错
    解决办法:将数据库users的表created_at updated_at字段改成varchar导入数据后处理时间在改timestamp格式


3、登陆接口 Passport验证token问题
 3.1 Unable to resolve PSR request. Please install the symfony/psr-http-message-bridge and nyholm/psr7 packages.
  解决办法:
  composer require laravel/passport:7.5.1  升级passport版本
  composer update更新包
  composer require symfony/psr-http-message-bridge --with all dependencies 安装symfony/psr-http-message-bridge
  composer require nyholm/psr7 安装psr7

  3.2 laravel-passport报错Replicating claims as headers is deprecated and will removed from v4.0. Please man
    解决办法:composer require lcobucci/jwt=3.3.3
以上是小编遇到的所有坑,如果对你有帮助的话,请给小编个赞吧

相关文章

网友评论

      本文标题:安装一款基于laravel6.x vue的框架Lucmsee 踩

      本文链接:https://www.haomeiwen.com/subject/hiftaltx.html