1 year ago

Very basic question(s?) about application architecture

Posted 1 year ago by nexxai

This is more of a theory question than a "how do I..." but here goes:

I am relatively new to Laravel, PHP, and programming in general. I've got what I think is a decent grasp of the basic concepts of the MVC architecture, but beyond that, things start to get a bit hazy.

I've gone through and watched the SOLID Principles video series, as well as the OOP video series, and in them Jeffrey creates interfaces and abstract classes as examples, but in a general PHP (not Laravel-specific) format.

What I don't "get" is: if I want to create an interface, is there a Laravel-specific way of doing that? Or do I just write "normal" PHP and add the files as necessary? And if I just write the "normal" PHP stuff, do I have to manually add the files to my composer.json so that they're picked up in the autoloader? Or if I put them in the "app/" location, will they be automatically detected?

I feel like I have a good grasp on the absolute basics, but then this massive hole of knowledge of anything that doesn't fit in a controller or model.

I apologize if these sound like stupid questions, but I don't know what I don't know and so I don't even know what I should be Googling for to try and figure it out.

Thank you very much for trying to help me understand things better

Please sign in or create an account to participate in this conversation.