Support the ongoing development of Laravel.io →

jay4yam

Joined 29 Jun 2015

Statistics

Threads 2
Replies 8
Solutions 3
Articles 0
posted 8 years ago

Get properties of related models

I've a user model which has a 1:1 relation with a UserInfo model class User extends Model implements...

0 Likes
0 Replies
posted 8 years ago

Test a select default value

I've got a select list in a form <div class="form-group {!! $errors->has('primenom')...

0 Likes
0 Replies
replied 5 years ago

SQLSTATE[23000]: Integrity constraint violation: 1048 Column

Hi The message is about the foreign key user_id. It seems that auth()->user()->id is null or e...

0 Likes
replied 6 years ago

eager loading question / issue ?

Try : $location = \App\Location::with('items', 'items.vendor')->findOrFail($location_id);

0 Likes
Solved
replied 6 years ago

eloquent relations

Because you've got many TemplateImage for one Template, you need to iterate over the Temp object in...

johnef liked this reply

1 Likes
Solved
replied 7 years ago

How to convert my variable to its real value?

May be you may get the data directly from your controller : public function userCount(){ $user_c...

0 Likes
replied 7 years ago

models not in app/models folder when generaten by artisan?

you need to add the model folder to the command...

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.