Support the ongoing development of Laravel.io →

4,313 Threads

Updating hasMany items with ease

While updating an entity model needs to update a hasMany attribute with multiple items. $user->la...

0 Likes
1 Replies

Eloquent object truncating long text?

Hey folks, I started a Stack Overflow question about this but I thought I'd see if anyone here might...

0 Likes
2 Replies
Solved

Polymorphic relationships with FQN

I'm using polymorphic relationships. I've just realized they wasn't working due to fully qualified n...

0 Likes
0 Replies

LARAVEL 4.1 probably issue on select float

Hi guys, on one of my site that i've builded with laravel 4.1, i've something strange with select da...

0 Likes
1 Replies
posted 10 years ago

Associating models without saving them directly

The following is just an example:Take the following two models with their relationships User =>...

0 Likes
5 Replies

Using pivot table's id as a foreign key in another table

Hi, I need to use pivot tables id as a foreign key in another table. for example i have following ta...

0 Likes
0 Replies
posted 10 years ago

Eloquent relationship containing where and orWhere constraints?

I am building a site which allows fitness instructors to publish a timetable of classes they teach....

0 Likes
2 Replies

how to use join on more thane 3 table using Eloquent / Convert the above query in Eloquent way

table name ( class name of model ) user ( UserModel ) id, name product ( ProductModel ) id, name, us...

0 Likes
1 Replies
posted 10 years ago

toArray() on collection returns [relations:protected] instead of [attributes:protected]

Hello everyone, I have a loaded collection, Conversations, for wich I do some sanitizing like this:...

0 Likes
0 Replies

Multiple tables in model

My Index page uses 3 tables in the database: index_slider index_feature footer_boxes I use one con...

0 Likes
9 Replies
Solved

How do you trap a queryexception and display a user friendly page?

If there is a query error while using Eloquent, how do you trap it and redirect the user to a friend...

0 Likes
0 Replies

Convert the query in eloquent ( which relationship to use in user model )

user table id name username email password role id name role_detail role_id -> primary of ro...

0 Likes
2 Replies

GUI Database Designer

im currently building this database designer inspired by laravelsd that works offline, i will releas...

0 Likes
6 Replies

How to make Controller query more beautiful??

Hello, I have this similar code in my 3 controllers, How can i make this code more beautiful?? Thank...

0 Likes
2 Replies
Solved

Relations from USER through USERDATA to LstCOUNTRY/LstAREA? Help

hi, friends sorry for my newbie question. Maybe it is very simply ... I have db-table "users&qu...

0 Likes
0 Replies

Form with relationship

Hi, i am new to php and laravel, but I really love the laravel framework. Maybe my problem is really...

0 Likes
1 Replies

Unable to update field of model (column signedBy)

I’ve Model named “Payment”, and want to update 2 field (shipmentStatus and signedBy) $payment->sh...

0 Likes
0 Replies

Raw select using jenssegers Laravel-MongoDB

I add jenssegers Laravel-MongoDB package into my Laravel 4.2 project, and have a one problem. Maybe...

0 Likes
0 Replies

sql to eloquent

query (works true): SELECT User.full_name as user_full_name,Setter.full_name as setter_full_name,st...

0 Likes
4 Replies
Solved

Assigning multiple users to a task

Okay so I'm creating a task manager for my company. A user can assign assign a task to multiple othe...

0 Likes
3 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

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.