These seeders is very usefull, when you want php artisan migrate:reset
or php artisan migrate:refresh
.
After full migration reset you need to php artisan passport:install
because newly created oauth tables is empty, but if you will use these gists, you will save some time and most importantly - save your current tokens.
- Run
php artisan db:seed
with only$this->call(OauthTablesReservation::class);
- Delete this line from
DatabaseSeeder
. Do any operations you want, likephp artisan migrate:refresh
- Run
php artisan db:seed
with only$this->call(OauthTablesSeeder::class);