Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0

if you mean something like

use MyApps\Models\*

so that all classes in this directory are automatically included the answer is no. Currently this is not available in the php world.

Last updated 2 years ago.
0

Ok, good to know.

Thanks!

Last updated 2 years ago.
0

This works, but I feel like I don't make total use of http://www.pass-4sure.ws Eloquent and its power. Also, fetching the Item/Photo model alongside with the attachments query seems complicated.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

KevinM86 kevinm86 Joined 3 Feb 2014

Moderators

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.