In this video tutorial, we will learn How To Create a Custom Table using Laravel Migration
Before Creating a Custom Table using Laravel Migration, Laravel must be already installed and running well.
Step 1: Create one table with the name "product"
php artisan make:migration create_product_table
Here "create" must be the first word, then after the underscore, then after putting your table name, and at last write the "table" word.
2022_08_13_033932_create_product_table by this name file is created.
Step 2: Go to the Migration Directory
You will find the file here at Database - Migration
By default, they are giving 3 default columns.
1. id
2. created_at
3. updated_at
Let me add my required column.
So, there are multiple functions that we can use.
Step 3: Finally, after related changes, fire the below command.
php artisan migrate
Now you can check your Database, the table will be there.
Woah, we have created the table.
Add your query in the comment section below (if any) 👇
For Similar Tutorial Guide👇
Visit MageComp Magento Blog:
https://magecomp.com/blog
24/7 Get Support Here-
https://magecomp.com/support/
Official Website-
https://magecomp.com
Follow us on Social Media :
Facebook -
https://www.facebook.com/theMageComp
Twitter -
https://twitter.com/theMageComp
Instagram -
https://www.instagram.com/themagecomp
LinkedIn -
https://www.linkedin.com/company/mage...
#laravel #laravel_tutorial #laravel7 #laravel8 #laravel_development #migration