You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passport's `oauth_clients` table has been changed in several ways:
130
129
131
-
- The `user_id` column has been replaced by the `owner_type` and `owner_id` columns.
132
-
- The `redirect` column has been replaced by the `redirect_uris` column. The new column needs to store an array of URLs.
133
-
- The `personal_access_client` and `password_client` columns have been replaced by the `grant_types` column. The new column needs to store an array of OAuth 2 grant types.
130
+
Passport 13 introduces a new schema for the `oauth_clients` table. However, These changes are **fully backward compatible**, and **no action is required** on your part.
134
131
135
-
Passport's `Laravel\Passport\Database\Factories\ClientFactory` factory class has been updated to reflect the changes to this table. If you do not want to make these changes to your application's `oauth_clients` table, you may use the [old Client factory class](https://github.com/laravel/passport/blob/12.x/database/factories/ClientFactory.php).
132
+
For reference, here are the changes on the `oauth_clients` table:
133
+
134
+
- The `user_id` column has been replaced with `owner_type` and `owner_id` columns.
135
+
- The `redirect` column has been replaced with `redirect_uris` column, which now stores an array of URIs.
136
+
- The `personal_access_client` and `password_client` columns have been replaced with `grant_types` column, which stores an array of supported OAuth 2 grant types.
137
+
138
+
If you prefer to use the new structure, you may create a migration to apply the changes:
139
+
140
+
```php
141
+
Schema::table('oauth_clients', function (Blueprint $table) {
Additionally, Passport's `Laravel\Passport\Database\Factories\ClientFactory` factory class has been updated to reflect the changes to this table. If you do not want to make these changes to your application's `oauth_clients` table, you may use the [old Client factory class](https://github.com/laravel/passport/blob/12.x/database/factories/ClientFactory.php).
0 commit comments