Question
Model in the laravel is used to interact with the underlying database table. And the migration is used to control the version of the database
Model in the laravel is used to interact with the underlying database table. And the migration is used to control the version of the database and create tables through coding. Create the model class and migration for the following. 1. Create the model with the name Information. The model will be associate with the employees' table and will ignore the timestamps as well. 2. Create migration for the employees' table that will contain the following columns. i. id type int auto incremented not null ii. Name type string null able.
iii. iv. v. vi. | Email type string, not null. Salary type decimal, not null. Address type string not null Phone number string null able. |
Each must create the model class for part one and for part two of this question they must create migration for the given scenario.
Kind requests:
1: Please answer it in 4 or 5 hours.
2: do exactly what is asked in question.
Thank you in advance.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started