在运行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 2992when I'm trying to run this command :
php artisan passport:installI'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.
更多推荐
发布评论