composer remove laravel/sanctum
di file routes/api.php komen line code
// Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
// return $request->user();
// });
Lalu hapus file 2019_12_14_000001_create_personal_access_tokens_table.php di folder database > migration
rm database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php
Lalu jalankan migrate
php artisan migrate:fresh
0 komentar