未找到 Laravel 护照迁移 [英] Laravel passport migration not found

查看:53
本文介绍了未找到 Laravel 护照迁移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用命令 compser require laravel/passsport 安装了 laravel 护照,但在此之后,database/migrations 目录中没有进行新的迁移.这是为什么?

I installed laravel passport using command compser require laravel/passsport, but after this, no new migration was made in database/migrations directory. Why is that?

推荐答案

迁移文件存在于您的供应商目录中的 Passport 包中.

The migration files exist in the Passport package in your vendor directory.

迁移不会复制到您的数据库/迁移文件夹中,因为它们不需要,因为它们是由 PassportServiceProvider 注册的.

The migrations won't be copied over to your database/migrations folder as they don't need to be since they're registered by the PassportServiceProvider.

您应该能够运行 php artisan migrate 并且它们将被包含在内.

You should just be able to run php artisan migrate and they will be included.

如果您使用的是 Laravel 5.3 或 5.4,那么您需要在 app/config.php 文件中注册服务提供者.

If you're using Laravel 5.3 or 5.4 then you will need to register the service provide in your app/config.php file.

这篇关于未找到 Laravel 护照迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆