Glossary

Controller

A file that groups the code answering related routes.

In plain words

A controller is a class (a named bundle of code) that holds the functions your routes call. Instead of writing all the code inside the routes file, you keep routes short and put the work in controllers, one per topic: LessonController, OrderController.

php artisan make:controller LessonController

See Your first Laravel route.

Found this useful?

Every lesson stays free. Tap the thumbs up so we know what works, or say thanks with a soda or a coffee: it pays for hosting and new lessons.

Buy me a sodaBuy me a coffee

Want more on this?

Tell us which part was not clear, ask for a follow-up lesson, or request a lesson on any topic. We read every request.

I would like
Only to tell you when it is ready.

WhatsApp

Join the channelChat with us

Free lessons and updates in the channel. Questions about learning or training? Chat with us.