Support the ongoing development of Laravel.io →

4,599 Threads

Building dynamic queries with Elo/Query Builder not possible?

Hi, in the past i have build queries like this: if (...) {$q.="AND (city='New York' OR city='De...

0 Likes
1 Replies

Inheritance

I have two classes. A and B. The class A extends Laravel, the class B extends A. They rappresent two...

0 Likes
0 Replies

Can't return a simple many-to-many relationship value

Hello! First of all thanks for the interest in my topic. I think that this question is easy. I have...

0 Likes
2 Replies
Solved

[DOUBT] $user->save() VS User::where()->update();

Hi all, I am beginner in Laravel. I have some doubts. I'm working on a function to edit users, every...

0 Likes
4 Replies
Solved

Has Many Through Pivot

Imagine: Category can have many Products, Products can have many Series - so basically, Category can...

0 Likes
1 Replies

Did I find a bug in Eloquent? ID is not being set correctly using a hasManyThrough relationship and paginate.

Hi there, I have the following three models and relationships set up. class Customer extends \Eloque...

0 Likes
2 Replies

Ecommerce With admin panel

hi can anybody help me to built shopping cart with admin panel or is there any reference link where...

0 Likes
3 Replies

How can I do this SQL query whit Eloquent?

Hello, Im new whit laravel, and I would to like do this query, in SQL it would be something like thi...

0 Likes
3 Replies
Solved

3 table relationship question

I am trying to figure out how to get a specific 3 table relationship working. I have a business list...

0 Likes
3 Replies

The best way to pagination ?

I try to find the to make paginate with out use a lot of process on database like, select all() and...

0 Likes
2 Replies

What is the easiest way to add the count of records that matched the whereIn to this model chain?

I have this eloquant model chain which works fine but I would like to add the count of matched recor...

0 Likes
0 Replies
posted 10 years ago

Homestead - unable to create and connect to new DB

Hi, I've just started using homestead and want to have multiple sites on the same VM. However, Homes...

0 Likes
1 Replies

sorting multiple tables by time

hello to every one, I am trying to sort multiple tables like this; //Controller http://laravel.io/bi...

0 Likes
4 Replies
Solved

Eloquent Query's not working with a certain table

Hello, I am porting my current website over to laravel and I'm having some issues. I'm trying to lis...

0 Likes
5 Replies
Solved
posted 10 years ago

Setting up relationships ?

I've been going through the documentation and reading up on relationships, and I'm having trouble oh...

0 Likes
2 Replies

Multiple tables over multiple databases in a single Model

I am in the planning stage of undertaking a database migration where the two databases (one MySQL, o...

0 Likes
4 Replies
Solved
posted 10 years ago

Missing where method on join with where clause

I require a join with a where clause such as: SELECT * FROM users LEFT JOIN contacts ON contact...

0 Likes
1 Replies

Deleting DB-entry: findOrFail or destroy?

Hi, is there a difference between $go = Project::findOrFail($id); $go->delete(); and Project::de...

0 Likes
2 Replies

Best way of retreiving items with a condition on the relation

#The goal# What I'm trying to do is generate a new collection with all the Consultations ordered by...

0 Likes
3 Replies
Solved
posted 10 years ago

SQLSTATE[HY000] [2006] MySQL server has gone away

I am getting "SQLSTATE[HY000] [2006] MySQL server has gone away" sometimes..... has anyone...

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.

© 2024 Laravel.io - All rights reserved.