Support the ongoing development of Laravel.io →

4,314 Threads

posted 9 years ago

Query using with + global scope

I have the following code: $clients = Clients::with("clientGroups.Profiles")->get(); T...

0 Likes
2 Replies
posted 9 years ago

Eloquent ORM: Get calculated value from fields that belong to different tables

Hi there I have two tables: Subscriptions and Partners. How can I use Eloquent to multiply two field...

0 Likes
1 Replies

having query function not matching.

HI, Ive got a location query that Im running and he having is not matching, on mysql or Sqlite , Now...

0 Likes
0 Replies
posted 9 years ago

How to get a collection that match a collection of tags (via a pivot table)?

I have an "articles" table and a "tags" table. Both are related in eloquent via...

0 Likes
0 Replies

DB binding error

HI Im building a package that has mapping, now one of the function it needs to be able to do and que...

0 Likes
2 Replies
Solved

Too many pivot tables?

I have a file uploader that is used by numerous admin sections. People, locations, history etc. Some...

0 Likes
5 Replies
Solved

Permission based Visibility, Appending, Eager Loading and Filling

Dear Laravel enthusiasts, I'm working on writing a REST API in Laravel and I've run aground on this....

0 Likes
1 Replies

Query Not Saving All Input

I am saving an Eloquent model to a MySQL database, however all the request input is not saved, despi...

0 Likes
10 Replies
Solved

Weird Query Results When Using Repository Pattern

demo Table: name | passport_date | visa_date when i using in Eloquent: $latestPassport = Demo::order...

0 Likes
1 Replies

Register user and send data to two tables at the same time: Users and Users_details

I need to register a new user and store data in two tables separately, the Users table will hold cla...

0 Likes
0 Replies
posted 9 years ago

chunk help

I have been trying to figure out how to use the chunk command to break up my results some as it is h...

0 Likes
1 Replies

Technique to store user profile

For my job portal i need to store user profile details along with their skill set and educational de...

0 Likes
1 Replies

Model Attributes and appends property

HI Im trying to have a model that has a latitude and longitude set on the model now when I query the...

0 Likes
0 Replies

Laravel-Javascrip call function on submit form

I do not know hot to call javascript function on home page when is submited form laravel on create p...

0 Likes
0 Replies
posted 10 years ago

Limit Related

Hi guys, Lets say I have a list of threads. How can I get the list of all threads and for each threa...

0 Likes
1 Replies

Routes HELP

I can only see the result of odbrojavanje method when is that route above the route with brojUserPor...

0 Likes
1 Replies

Eager loading nested polymorphic relationship in different namespace

If you just want to jump straight to the question, it's at the very bottom. For your convenience how...

0 Likes
1 Replies

Query Character Length Limit?

I'm trying to save a blob to a MySQL database. I can do it successfully for a file that is 4000 byt...

0 Likes
5 Replies
Solved

How to update hasMany relationship in Laravel 5.1

Hello, I am totally new on Laravel, and I have implement the User table provided by Laravel Auth, an...

0 Likes
0 Replies

Time formatting

Hi, What is the proper way to format time (not timestamp)? The time field in the database is HH:MM:S...

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