Support the ongoing development of Laravel.io →

4,604 Threads

posted 8 years ago

Laravel 5.3 Eloquent & Relationship

I have a record model and status model. Which each record has status can be "approved", &q...

0 Likes
3 Replies
Solved
posted 8 years ago

Insert records to either two tables or one table depending on if a record exists or not using Laravel query builder

I'm trying to insert records to either two tables or one table depending on if a record exists or no...

0 Likes
0 Replies

Is it possible to have Eloquent model $fillable attributes conditionally?

For example, you might have a "My Account" section on the frontend for users, and a User E...

0 Likes
2 Replies

Filter Results based on the parent relation

Hi, I'm trying to filter my results based on a field value. Some informations Laravel 5.3 postgres...

0 Likes
0 Replies

Getting error when returning query to view (Trying to get property of non-object)

Hello, I'm trying to get the info from a specific user via a ID in the url. This is my route: Route:...

0 Likes
2 Replies
Solved

Migrations

Hello, i'm new user of laravel and i tried use migrations relationship but it doesn't work. Can you...

0 Likes
1 Replies
Solved
posted 8 years ago

Please help me to debug!

Hello folks, Please help me to debug my code below. The problem is that after the upload to the data...

0 Likes
1 Replies
posted 8 years ago

Database relations

Hello! Please advice me how to connect two tables within database - Company and Employees. First, yo...

0 Likes
0 Replies

Column not found, using Alias with OrderBy and GroupBy

As the title says, for some reason when using DB::raw and an alias within DB::raw the alias name (fo...

0 Likes
5 Replies

Laravel/Lumen 5.3.3: override evn values in migrations

In laravel documentations I vividly see: https://laravel.com/docs/5.3/configuration#environment-conf...

0 Likes
0 Replies
posted 8 years ago

# I need to convert laravel query instead of MYSQL query.

select * from (select * from messages_history order by created_at desc) x WHERE sender_user_id =...

0 Likes
2 Replies

Error running Queue

I have a Queue, which I'm trying to insert a job but, getting the following error: Next Illuminate\D...

0 Likes
0 Replies

Can't change user's password

Hello everyone, I can't change my user password, but other field. i dont know why, plz help me . wha...

0 Likes
6 Replies
Solved

Eloquent hell ...toSQL doesn't show aggregation

Good day: I've been on this for several days and I believe the Eloquent module has unnecessary level...

0 Likes
1 Replies

Way to "collapse" migrations?

Hello, I'm using SQLite to run unit tests on Jenkins and am unable to use the 5.2 migrations to crea...

0 Likes
1 Replies

Transformers for laravel 4.2

Stuck with old laravel 4.2 project. want to implement dingo like transformers in 4.2 any guidance wo...

0 Likes
0 Replies

How can I get the parent without children with child's eloquent model?

How can I get the parent without children with child's eloquent model? Child eloquent: class Product...

0 Likes
1 Replies

mysqli support in laravel

How can use I mysqli database driver in laravel? I gone through the documentation and found that lar...

0 Likes
2 Replies

Admin Controller(user type) checking in database

Hi. I don't really have a problem with my app. It works but I want to know why it works.... It sound...

0 Likes
2 Replies

How to use updateorcreate on comparing foreign key?

I have UserAvatar and User table. I want to compare if image is already uploaded then update or inse...

0 Likes
0 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.

© 2025 Laravel.io - All rights reserved.