Web Apps &
PHP Frameworks



(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?


Blog example:

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)


(okay, okay)

A route that returns a view

What if we just return some data

create a controller

"resource" routes

Web Apps and Frameworks

By gpspake

Web Apps and Frameworks

  • 1,274