Support the ongoing development of Laravel.io →
revati

revati

Joined 31 Jan 2014

Statistics

Threads 8
Replies 35
Solutions 4
Articles 0

Laravel 5 FormRequest

Hello, i am using Laravel's new feature FormRequest and every thing is nice, input validates, permis...

0 Likes
2 Replies

Value objects validation

Hello, so i am creating value Money( 500, Currency('EUR') ). What would be the best approach to vali...

0 Likes
0 Replies

Servicelayer? + command bus

Hello, i am creating web page, it will have multiple ways to access, via browser, api and cli. To pr...

0 Likes
0 Replies

Eloquent is everywhere

I'm learning DDD pattern and signle responsability and what not, and i found one thing that repeats...

0 Likes
0 Replies
posted 11 years ago

Event driven design

I am about to create new project and i think events are the best fit for this job. But what should i...

0 Likes
6 Replies
replied 11 years ago

Best practice - place large queries in model or controller?

Maybe you should look into repositories pattern. It would be great place to put that logic because E...

0 Likes
Solved
replied 11 years ago

Saving logic in a controller

Off topic: You could use the Repository pattern, which will keep both your controllers and models t...

0 Likes
replied 11 years ago

How do you grade this code?

I do not remember where i heard about it, but if you have more then 3 classes in constructor it's &q...

0 Likes
replied 11 years ago

Variable assignment

If it is about setting variables in a view, you shouldn't do that, but if you want you cold do this:...

0 Likes
replied 11 years ago

Organize code for access from many controllers??

If it is tied to specific views than view composers are good choice. I usually create new folder in...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.