在运行php artisan护照时调用成员函数getDateFormat()null:install(Call to a member function getDateFormat() on null

编程入门 行业动态 更新时间:2024-10-28 04:16:02
在运行php artisan护照时调用成员函数getDateFormat()null:install(Call to a member function getDateFormat() on null when running php artisan passport:install)

我收到此错误消息:

PHP Fatal error: Call to a member function getDateFormat() on null in /usr/local/ampps/www/project/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 2992

当我试图运行这个命令时:

php artisan passport:install

我正在使用全新安装的laravel v5.3.16以及mysql和mongodb数据库结构。

任何想法如何解决这个问题?

I'm getting this error message :

PHP Fatal error: Call to a member function getDateFormat() on null in /usr/local/ampps/www/project/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 2992

when I'm trying to run this command :

php artisan passport:install

I'm using a fresh installed laravel v5.3.16 with mysql and mongodb database structure.

any idea how to fix this ?

最满意答案

我找到了解决方案,我必须安装laravel然后护照包然后修改mongodb迁移以使其工作。

这是这个行为的顺序造成了这个错误。

I've Found the solution, I had to install laravel and then passport package then modify mongodb migrations to make it work.

It was order of this action which made this error.

更多推荐

本文发布于:2023-07-29 20:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1319619.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时调   护照   函数   成员   getDateFormat

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!