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

Thanks so much for trying to help me DrPrez :) Unfortunately i am getting "Class 'App\Phone' not found" for some reason :/

DrPrez said:

This works great, try paste it in your routes-file and go to /test

EDIT: i removed "\App" and now it shows me the content of the variable correctly. Now i have to integrate it in my function

EDIT 2: Thanks DrPrez :) I now realized that 'has' is looking for methods and not for models :S my bad, Thank you :) :)

Last updated 9 years ago.
0

For some reason when i added 'has' it became very very slow :/ Any thoughts on that? If i remove it, the website is fast again..

0

with has 8.0563471317291 without has 0.050530910491943 calculations made using php microtime on controller beginning and ending

my database Phone -> 3425 rows Products -> 7631 rows

Also, i currently run it on my computer using XAMPP.

NOTE: This is now solved here -> http://laravel.io/forum/03-14-2015-timing-issues-when-use-has-relationship

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

George george Joined 10 Mar 2015

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.