Support the ongoing development of Laravel.io →

4,311 Threads

A four digit year could not be found Data missing

Hello! I am having some trouble to dynamically update records on my database. I need to synchronize...

0 Likes
1 Replies
0 Likes
1 Replies

UNION TABLES

I would like to know how to make a query MySql to laravel controller: My MySql query like: (SELECT c...

0 Likes
1 Replies
Solved
posted 10 years ago

Eloquent Query

Please help me make this query in eloquent. A business can have many categories. Select b.* from bus...

0 Likes
0 Replies

Eloquent One to Many With Condition

Hi i have a hard time making successful query, basically i have products table and product_specials...

0 Likes
2 Replies
posted 10 years ago

belongsTo not return any result while expected

I'm new to Laravel and at the moment exploring the vast amount of really cool features! I came acros...

0 Likes
5 Replies

Eloquent update not updating a field

I'm having trouble getting a record from the database, updating it and saving it again. Here is the...

0 Likes
2 Replies
Solved

Collection Search

http://laravel.io/bin/DqxWo Hello, I have a collection that I would like to filter it down to what I...

0 Likes
0 Replies

"Metadata" table to array, "Automatically"?

I am interfacing my code with Wordpress which has a table called "Usermeta". The table st...

0 Likes
2 Replies

Where clause comparing updated_at to pivot created_at strange results...

I have a User and a Trip model with belongsToMany relationships and a pivot table between. I'm tryi...

0 Likes
0 Replies

Multiple category tables

Hi Guys, I have a question about the naming convention of the tables. We have multiple tables with s...

0 Likes
2 Replies

Eloquent convention

Hi Laravel Team, I have had some deep trouble on writing Eloquent queries for multiple nested reques...

0 Likes
0 Replies

Model data formatting, models and relations.

Hey Guys, So i'm just learning Laravel as a side project and have come across an interesting sort of...

0 Likes
0 Replies

Problem saving information in the database.

Hi, I'm new in Laravel. I'm having a problem saving data in the database. I get an array and I'm try...

0 Likes
1 Replies

Converting json to nested models

Hey there, Im using Elasticsearch as primary search engine en for some pages that have quite big nes...

0 Likes
1 Replies

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
posted 10 years ago

Query, filter and return all results with Eloquent

This is basically what I am wanting to do: Locations::where('location_id', '=', $location_id)->re...

0 Likes
2 Replies

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

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.