Hello, i am using Laravel's new feature FormRequest and every thing is nice, input validates, permis...
Hello, so i am creating value Money( 500, Currency('EUR') ). What would be the best approach to vali...
Hello, i am creating web page, it will have multiple ways to access, via browser, api and cli. To pr...
I'm learning DDD pattern and signle responsability and what not, and i found one thing that repeats...
I am about to create new project and i think events are the best fit for this job. But what should i...
Maybe you should look into repositories pattern. It would be great place to put that logic because E...
Off topic: You could use the Repository pattern, which will keep both your controllers and models t...
I do not remember where i heard about it, but if you have more then 3 classes in constructor it's &q...
If it is about setting variables in a view, you shouldn't do that, but if you want you cold do this:...
If it is tied to specific views than view composers are good choice. I usually create new folder in...
The Laravel portal for problem solving, knowledge sharing and community building.