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

rgillera's avatar

Adding Custom Registration Fields

I followed spark documentation - COOKBOOK - "Adding Registration Fields"

I also added age column in the database migration, then run php artisan migrate

After that, when I try to register new user. I receive an error "Something went wrong. Please try again or contact customer support." In the console, I get a 500 error.

How will I fix this?

0 likes
4 replies
EventFellows's avatar

Please check your database if the age field is there. If you did only run migrate it will NOT be there. You either need to run php artisan migrate:refresh (you will loose all data in the database) or create a new migration to add that field. Migration that have run already are not run again on migrate.

rgillera's avatar

I already check the database. age column is already there.

EventFellows's avatar

Then this can be anything. Try to get more info from developer console or Clockwork. it will give you details on what went wrong.

christian_H's avatar

Have you checked the laravel.log file in the logs directory within the storage directory? It should have a more detailed error message than what showed in your console as well as a stack trace.

Please or to participate in this conversation.