Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rileybolen123's avatar

Adding a column to the api_tokens table

I need to add a column to the api_tokens table so that I can store the current team of a user when they create a new api token. It should be pretty straight forward but I can't find the code that creates a new token and inserts it into the database. Or do i have to do something in the SparkServiceProvider?

0 likes
1 reply
EventFellows's avatar
Level 16

to create a new column in the table you need to create a new migration and then php artisan migrate it.

vendor\laravel\spark\src\Repositories\TokenRepository.php creates the token

Please or to participate in this conversation.