Control panel icon

Controllers

7 Series
25 Lessons
4h 2m

Controllers are a great way to cleanly direct the business logic needed to handle requests for a route within your application.

Lessons.

Video preview
Adding A User Profile Model, Migration, Factory, and Controller
Let's Learn AdonisJS 6 #4.12
・
Mar 11, 24

Adding A Profile Model, Migration, Factory, and Controller

Uh oh, a new requirement has come in and now we also need to account for user profiles! In this lesson, we'll learn how we can easily create a new model, migration, factory, and controller for an entity in one fell swoop!

Video preview
Cleaning Up Routes with Controllers
Let's Learn AdonisJS 6 #2.10
・
Jan 31, 24

Cleaning Up Routes with Controllers

In this lesson, we'll learn what controllers are and how they can be used to drastically simplify our route definitions by allowing us to move our route handlers off the route definition and into the controller.

Let's Learn AdonisJS 5 #3.1
・
Dec 02, 21

Route & Controller Resources

In this lesson, we'll learn what a resource is and how we can quickly and easily define a route resource and handle each resourceful route with a resource controller.

Let's Learn AdonisJS 5 #3.0
・
Nov 10, 21

Handling Routes with Controllers

In this lesson, we'll learn about Controllers and how we can keep our route definitions clean and easy to scan by extracting our route handlers into these Controllers.

Let's Learn AdonisJS 5 Preview #4.0
・
Jan 02, 21

Let's Learn Adonis 5: Controllers, Services, Resources, and Namespacing

In this lesson, we'll be hammering down several Adonis topics in one swoop. We'll be covering Controllers, which in turn allow us to utilize Services, Resources, and Namespacing.

Showing 21 to 25 of 25 results