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

BGoole's avatar
Level 1

What are create_user_table, create_cache_table and create_jobs_table migrations?

What do the standard migrations create_user_table, create_cache_table and create_jobs_table do that are created by running the command = laravel new ? Are they necessary to run a basic laravel application? And if I want to create a User table migration for the users that can registrate/login in my webshop can I name it create_user_table?

Thank you in advance

0 likes
1 reply
tykus's avatar
tykus
Best Answer
Level 104

Just open the relevant migration files and see what is being created. You can delete them or modify them as needed; you are free to rerun the all of the migrations as you develop your application so your database schema is up to date with whatever you need.

php artisan migrate:fresh

Are they needed for a basic laravel application; no. But, your "basic" might be different from someone else's. If you want to use Laravel's built-in authentication, then it might be easiest to keep the provided users migration, adding any other columns that your application needs. Same for jobs and cache (if using the database driver).

1 like

Please or to participate in this conversation.