Week 10: Models and Controllers
🗓 Week of November 5
Concepts
PART 1
Laravel: Controllers
Now we will move beyond the router. In Model-View-Controller (MVC) Architecture, the controller is the brains. It is where all the logic is stored. We will learn how to create a controller and connect the routes to it.
The link below goes to the official Laravel Documentation
PART 2
Laravel: Models
The Model refers the data and business rules, and in most cases this means a database. We will learn how to create a model, connect to the database, and write queries in our Controller using Laravel's Eloquent.
The link below goes to the official Laravel Documentation
Practice
In-Class Exercise
Seussology
With our templates in place, we will connect to the Seussology Database, retrieve the relevant data and push to the views.
Group Project
Project Prototype
A working prototype of the project. The prototype does not need to be complete, but it does need to be functional.
Independent Study
Laracasts
Laravel 5.7 from Scratch
Watch this simple to follow Free beginners course on Laravel. You will learn all the basics of using Laravel including: routes, views, controllers, databases, form handling and validation.
PluralSight
Try Laravel
Watch this three-part course that digs into an overview of the Laravel framework. You will learn how to start building PHP applications with the MVC architecture.
Lynda
Laravel 5 Essential Training
Watch this course as it covers the basics you need to know to build elegant applications of any scale with Laravel. Learn how to work with the MVC architecture, bootstrap components with service providers, and incorporate the ORM Eloquent for simplified database integration.