Web Apps &
(Representational State Transfer)
Web apps + HTTP
What does any of this have to do with frameworks?
Like Laravel, for instance
Back to that crud example
Now we have "action methods" to go with our "routes" and "views"
How's this actually work?
Let's look at what Laravel does!
Routes don't have to go to a controller method, they can just return a view (or even just return a string)
Controllers typically return a "view" with some data that's been passed to it but they can also just return some data (JSON for instance)
A route that returns a view
What if we just return some data
create a controller
Web Apps and Frameworks