Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions