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 :) :)
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..
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community