Ioan's avatar
Level 1

Laravel 8 From Scratch: Introducing controllers

Somebody needs my help with a Laravel 7 project.

I started reviewing the Laravel 8 From Scratch course, which I enjoy. My last lesson is Section 2 The Basics > Episode 9 Route Wildcard Constraints. This course does not have a version for Laravel 7.

Right now I am very much interested in learning about the basic concept of controllers.

The author mentions controllers in the course overview only in the following two episodes:

  • Section 1 Prerequisites and Setup > Episode 01 An Animated Introduction to MVC
  • Section 6 Search > Episode 38 Search (The cleaner Way)

The overview of the Laravel 6 version of the course mentions controllers in the following places:

  • Section 2 Routing
    • Episode 08 Routing to Controllers
  • Section 3 Database Access
    • Episode 12 Generate Multiple Files in a Single Command
  • Section 4 Views > Episode 20 Homework Solutions
  • Section 5 Forms
    • Episode 21 The Seven Restful Controller Actions
    • Episode 22 Restful Routing
    • Episode 23 Form Handling
    • Episode 25 Form Validation Essentials
  • Section 6 Controller Techniques
  • Section 13 Authorization
    • Episode 52 Guessing the Ability Name
    • Episode 53 Middleware-Based Authorization

I know that the Laravel 8 version of the course is a work in progress.

What do you suggest I do: should I simply refer to the Laravel 6 version of the course or should I look somewhere else? Are Laravel 8 controllers quite different?

Thank you.

0 likes
6 replies
Ioan's avatar
Level 1

Thank you, dear Michal.

JeffreyWay's avatar

Nothing has changed in that regard. We'll talk about controllers more in the Forms chapter.

Ioan's avatar
Level 1

Thank you, dear Jeffrey.

Today I realized that Laravel 8 uses a new syntax for invoking controllers in route files.

martinbean's avatar

@ioan Controllers are just classes. A controller file itself looks pretty no different from a Laravel 5 project as it does an up-to-date Laravel 8 project.

You mentioned that somebody needs help with a Laravel 7 project. So are you looking into controllers because this person had an issue with one of theirs? Or is controllers just where you are in your journey in learning Laravel?

Ioan's avatar
Level 1

Thank you very much, dear Martin.

My client has a Laravel 7 setup connecting to a Wix API. I need to troubleshoot this connection. I don't know if my client's controllers themselves are the cause of the problems or not. At any rate, I started researching Laravel.

I did find a small YouTube tutorial depicting a similar situation. Unsurprisingly, this tutorial uses controllers. In order to understand and adapt it to my situation I need a basic understanding of controllers.

Please or to participate in this conversation.