Support the ongoing development of Laravel.io →

Akash

Joined 28 Dec 2022

Statistics

Threads 1
Replies 1
Solutions 0
Articles 0

Need to define condition if/else via model

If we use basic select like: Products::paginate(6); it return us:-> [ id: 1, product name: 'test'...

0 Likes
3 Replies
replied 1 year ago

Need to define condition if/else via model

Hi tvbeek, Thanks !! Here is my database structure kindly have a look. I need something from eloque...

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.

© 2024 Laravel.io - All rights reserved.