Support the ongoing development of Laravel.io →
Eloquent Views Architecture
Last updated 1 year ago.
0

You can use http://laravel.com/docs/4.2/eloquent#model-events and/or http://laravel.com/docs/4.2/eloquent#model-observers. You can pass the Request when instantiating your observer and do your business logic there. Avoid doing it on a controller. You can also create a Model Manager to do some business logic there.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

DJJQ djjq Joined 1 May 2015

Moderators

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.

© 2024 Laravel.io - All rights reserved.