Copyright ©—A site by John Koster

The cache:table command is used to create a new migration for the cache database table. This table is required to use the database cache driver. This command defines no parameters and can be used like so:

php artisan cache:table

The migration will create a cache table with the following properties:

The cache database table
The cache database table

The cache:table command will allow itself to be run multiple times. This results in multiple migrations being generated. Be sure to change the table name of the additional migration files so that your migrations do not break or throw errors when the migrate command is ran.

John Koster

Join the mailing list to receive awesome blog posts, product updates and more

Cancel Reply


To join the discussion leave your name, email and comment below.

Be the first to leave a reply!

Subscribe to the Mailing List

Join the mailing to list to receive product and blog post updates