Container tools are really good for both development and for deployment, but I would recommend to use something like podman instead ... or modify your default docker setup.
There is one major issue with how people tend to use docker system: it runs as root. What this means is that for a mounted volume, you container has full root-level access to it. This is a potential attack vector.
The solution is to either use something else (like podman, where entire infrastructure runs with user-level perms) or configure the docker container so that they dont have internally run everything as root.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan.
A "search" would return an array of 0..n results. What OP actually described is a lookup/retrieval of a specific entry. Just because he thinks that it is not an exceptional situation for result not to be found, it does not make it correct.
What is that insecure code? Explain, please.
Which part of security problems is magically solved by Laravel? Just because your code is inside a "Laravel Controller" does it become instantly secure by the blessing of your patron saint?
Because what you are writing here are the copy-pasted talking points. Give examples.
How exactly using Laravel would make the code more secure? I mean, if you are unable to to write secure code, you should not be working as a developer. And if you are just now learning PHP, you should not start with any framework.
Or were you implying that PHP without Laravel is somehow intrinsically insecure?
You are supposed to use it for a quick MVP creation and then you delete the entire thing before writing the proper code. That's why it has scaffolding and active record, and very simplistic templating, and strange mis-naming of patterns/layers.
podman, zed
This article should have been called "how Laravel tried to rebrand worst programming practices from CodeIgniter".
You should have focused on learning about how to do good OOP with PHP, instead of attempting to jump directly into frameworks.
I would look for a CTO (you should have a friend who has one of those in his company) that you can borrow (with a proper payment).
No, it is not.
The array and string functions not having consistent parameter order.
Container tools are really good for both development and for deployment, but I would recommend to use something like podman instead ... or modify your default docker setup.
There is one major issue with how people tend to use docker system: it runs as root. What this means is that for a mounted volume, you container has full root-level access to it. This is a potential attack vector.
The solution is to either use something else (like podman, where entire infrastructure runs with user-level perms) or configure the docker container so that they dont have internally run everything as root.
This perfectly describes last 3 "enterprise" projects that I have worked on. Well, except the ORM bit - 2 of those projects has Doctrine 2+.
You should find a smarter team lead.
https://workchronicles.com/wp-content/uploads/2022/08/must-be-imposter-syndrome.png
wouldn't it be easier to distribute it as a docker image?
The part I would take umbrage with is not the amount of classes, but the event-driven architecture :D
If any of them had ANY clue about OOP and best programming practices, then they would not use active record.
Lack of basic understanding of OOP or best programming practices
That's the rule I go by.
yes
A "search" would return an array of 0..n results. What OP actually described is a lookup/retrieval of a specific entry. Just because he thinks that it is not an exceptional situation for result not to be found, it does not make it correct.
from what I use, there is the old
##phpIRC room on Libre with the linked Discord serverTry reading https://martinfowler.com/books/eaa.html
What is that insecure code? Explain, please.
Which part of security problems is magically solved by Laravel? Just because your code is inside a "Laravel Controller" does it become instantly secure by the blessing of your patron saint?
Because what you are writing here are the copy-pasted talking points. Give examples.
How exactly using Laravel would make the code more secure? I mean, if you are unable to to write secure code, you should not be working as a developer. And if you are just now learning PHP, you should not start with any framework.
Or were you implying that PHP without Laravel is somehow intrinsically insecure?
P.S. your "wheel" is pear-shaped.
Sure, but Laravel as a tool is intended for RAD.
You are supposed to use it for a quick MVP creation and then you delete the entire thing before writing the proper code. That's why it has scaffolding and active record, and very simplistic templating, and strange mis-naming of patterns/layers.
I'm sorry to tell you this, but what Laravel promotes are colloquially called "Anti Patterns". As in - thing that you really should not be using.
The prime example being what Laravel calls "facades", which are not actually Facade pattern but instead are just wrappers for global mutable state.
If you want to learn proper OOP, you will have to ditch it. I know it might sound harsh or inflammatory, but that is the sad reality.
I just quickly write some custom CSS. For personal projects, making the UI is part of the fun.
Honestly, you got scammed :D