Support the ongoing development of Laravel.io →

4,606 Threads

PDOException SQLSTATE[HY000] [2002] No such file or directory

Hi, I have small problem with Laravel framework on shared hosting with phpmyadmin and only ftp acces...

0 Likes
1 Replies
Solved

Custom timestamp column

Hi guys, I'm trying to save a custom timestamp "expires_at" in DB, but not working here is...

0 Likes
4 Replies
Solved

Confusion about programatically chaining where and take statements

Hi, I'm working on an API and one of the endpoints has all optional parameters. What I'm trying to d...

0 Likes
7 Replies
Solved

Get an item through pivot table by a "has" relationship...

Hello all, I have some model called location, which describe a location, (say the eiffel tower). Thi...

0 Likes
2 Replies

Most efficient count on relationships

I'm currently using Eloquent for my database queries, but when an user logs off I want to get a tota...

0 Likes
2 Replies

Best way to link a model to two other models

Hi guys, I'm trying to find the best way to implement the following. I have a Client of a given Sect...

0 Likes
2 Replies

Add milliseconds to eloquents created_at/updated_at

Hi guys! I would really love to be able to to include milliseconds to the time fields in my models....

0 Likes
1 Replies

Eloquent LEFT JOIN WHERE NULL producing strange results

I'm trying to use Eloquent to perform the following query during a database seed: SELECT * FROM...

0 Likes
1 Replies
Solved

N+1 single view Data Retriving

Dear All, I have a problem like that. // First, I created one to many relation for Post and PostCate...

0 Likes
2 Replies
Solved
posted 10 years ago

BindingResolutionException using Schema\Blueprint and Builder

Hello eveyone, I am trying to create an application that creates custom tables and columns in my dat...

0 Likes
0 Replies

Mutator not ran during mass assignment

I am attempting to convert a mm-dd-yyyy date from jquery-ui datepicker to a sql timestamp. My mutato...

0 Likes
0 Replies

How to set default number format for inputs?

I want to use comma as decimal separator on inputs, save it on database and get it later with comma...

0 Likes
2 Replies

Error Exception Undefined index

Hello Guys, i have a problem to saving the data from my form input array fields to database. i have...

0 Likes
1 Replies
posted 10 years ago

Pagination DB:select

I am working on a project that need to paginate postgresql queries. The problem is that I can't put...

0 Likes
0 Replies
posted 10 years ago

New to Laravel - need help with combining multiple SQL queries and passing to view

Hi I'm trying to get my head around Laravel so am trying out a pet project idea and have hit a roadb...

0 Likes
1 Replies
Solved

Timestamp columns not updating

I thought these columns got updated automatically but they're not. I don't know what I may be missin...

0 Likes
6 Replies
Solved

Using lists with eager loading

Hello! I'm trying to get "full_name" from the users table in the lists function like this:...

0 Likes
6 Replies
Solved

Foreign Keys Drop-down List

I have 2 tables: [CUSTOMERS] id, full_name, company_id [COMPANIES] id, company_name I already create...

0 Likes
3 Replies

Caching relationships and table data

Throughout querying my database with the queries as the one below; Model::with('first','second','thi...

0 Likes
2 Replies
Solved

N-ary relationships

Hi community, Does anyone know how to deal with n-ary relationships ? I managed to create a pivot ta...

0 Likes
6 Replies
Solved

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.