you can place it in the view. if the condition statement becomes more complex, i'd use a model and if it requires more power, create a stored procedure in mysql and use it in the model. that's how i would approach it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community