Support the ongoing development of Laravel.io →

fetch404

Joined 18 Apr 2015

Statistics

Threads 0
Replies 1
Solutions 0
Articles 0

fetch404 has not posted any threads yet

replied 9 years ago

How to make a variable Database call?

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

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.