Laying the Foundation
Learn how to manage the static data in your Laravel applications.
We'll cover the following...
Overview
With the authentication part done, we are ready to move to the heart of the course: restaurant management. Restaurants will have complete addresses, and we will store the country and the state for each restaurant. In this lesson, we are preparing for the ‘Restaurant’ module.
For the ‘Country’ module, we will do the following:
- Migration + Eloquent model
- Seeder + CSV file with data
- The API call to fetch countries
- A test for the API call
Do it yourself stuff
The migration, the Eloquent model, and the API call are fairly easy to do. ...