Support the ongoing development of Laravel.io →

bluehazed

Joined 19 Feb 2014

Statistics

Threads 1
Replies 3
Solutions 0
Articles 0

Can't access Eloquent models from artisan command.

So I'm trying to do a very simple eloquent query, however both a select and an insert query fail. Th...

0 Likes
5 Replies
replied 10 years ago

Can't access Eloquent models from artisan command.

Tried using App\Models\Phone, namespace doesn't seem to be the problem.

0 Likes
replied 10 years ago

Can't access Eloquent models from artisan command.

Phone::where() call wasn't working because I wasn't using ->get(), and Phone::all() works, but fo...

0 Likes
replied 10 years ago

Can't access Eloquent models from artisan command.

Ah, sorry for messed up formatting.

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.