Support the ongoing development of Laravel.io →

dfc1883

Joined 21 Jun 2015

Statistics

Threads 3
Replies 5
Solutions 0
Articles 0

Sorting by an Accessor?

I'm trying to sort on the value of an accessor, but I'm not entirely sure where to put it. The attac...

0 Likes
0 Replies

Only returning results where a 'with' matches criteria.

I'm trying to get only Products where they are in the selected 'category' and the selected 'range' P...

0 Likes
1 Replies
Solved

How to make a variable Database call?

I'm trying to set up a single Controller that will be passed a variable name from the route. I'm not...

0 Likes
10 Replies
Solved
replied 9 years ago

How to make a variable Database call?

ModestasV said: As for this problem - I don't know solution. I just included namespace before every...

0 Likes
replied 9 years ago

How to make a variable Database call?

ModestasV said: After I encountered this problem I just did like this: $className = "MyClass&q...

0 Likes
replied 9 years ago

How to make a variable Database call?

fetch404 said: Maybe try this? $className = "Link"; $results = {$className}::all(); Tha...

0 Likes
replied 9 years ago

How to make a variable Database call?

Thank you, however that only explains half of the problem though, so isn't quite the solution. So 'E...

0 Likes
replied 9 years ago

How to make a variable Database call?

Thanks for the reply, yes, I've tried $mydata = Event; but I'm getting the error. FatalErrorExceptio...

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.