I don’t want to elaborate this application because I believe you’re smart enough to follow what will take place in a few minutes when you’ll have a look at the subsequent codes.
The application we’re going to make is very simple. John Doe is a user who wants to create a review page for his web site. He must have an index page. From that index page one can go the detail section of the reviews he has been keeping. To do that, he has a database migration file first.
First we create that file (consult the database migration chapter). Our file is named something like this: 2016_09_03_015541_create_reviews_table. ...