Support the ongoing development of Laravel.io →

rmcquary

Joined 20 Aug 2014

Statistics

Threads 1
Replies 2
Solutions 0
Articles 0

Creating helper method for similar database query -- class name as variable variable?

I'm getting started with Laravel, and learning as I go. I'd like to know the best way to tackle this...

0 Likes
4 Replies
Solved
replied 9 years ago

Creating helper method for similar database query -- class name as variable variable?

skyboyer said: Instead of "Model::where" you can use construction _ _ CLASS _ _::where -...

0 Likes
replied 9 years ago

Creating helper method for similar database query -- class name as variable variable?

Josh, I like this idea, but I should have mentioned that I am using Eloquent. So, I guess that my Ba...

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.