Support the ongoing development of Laravel.io →

4,599 Threads

Most efficient way to get count of related tables

I'm looking for the most efficient way to get the count of related records from related tables. The...

0 Likes
2 Replies
Solved

Eloquent Join Table.

I have 2 Tables User id full_name Post id user_id title content How to find out User.full_name f...

0 Likes
2 Replies
Solved

Search function in API

I'm willing to implement a search function with a Integration of a school API. in other words. I'm w...

0 Likes
6 Replies
Solved

Laravel not validate that the database is up?

When doing the login with the method Auth::attempt() I get this error: ErrorException htmlspecialcha...

0 Likes
0 Replies

How to store ip address at Laravel?

So I want to store users ip in my database, but I coulnd create VARBINARY(16) in my schema builder....

0 Likes
2 Replies

Relation with extra condition

TL;DR how to address the same table's field in the additional condition like this: $this->hasMany...

0 Likes
3 Replies

How to initialize my Model to save data coming from Ajax request

I am a bit confused on initializing my Model when the data is coming from Ajax request. For general...

0 Likes
1 Replies

Many to many relationship with Eloquent

Good morning to all guys! I have two table. "user" and "user_user". In the table...

0 Likes
2 Replies
Solved

Update two or more table with relations

Hello, I have 2 tables (or more) with relations, user_details and addresses. class UserDetail extend...

0 Likes
4 Replies

convert many to many (but only one related item) mysql query to a laravel query object

Hi I'm having trouble converting a mysql query that I've been working on into a laravel eloquent que...

0 Likes
0 Replies

understanding laravel dropdown

hi, i'm a newbie to laravel framework and i just find it's so hard to understanding laravel form usa...

0 Likes
2 Replies

compare table column with sum of hasMany

Hello, I am unable to figure out how to perform one query, where I get objects from model, based on...

0 Likes
6 Replies
Solved
posted 10 years ago

Select category with number of products

Hi, i need select the categories with number of products in each category. With this query i do what...

0 Likes
1 Replies

Fatal error: Class 'DB' not found

hi guys, i have spend more than 2 day for install this framework, feel suck... And i though i did it...

0 Likes
5 Replies
Solved

migrate:rollback command Problem

See url http://laravel.io/bin/JXkw

0 Likes
4 Replies

Self query using Eloqent? Advice needed

Hello, I have my user model referencing a table with a UserID as the PK. The same table has another...

0 Likes
10 Replies
Solved

Error with Query\Builder::getMorphClass(), can't understand why

I have a Lavavel 4.1.31 application that serves me an error I can't really understand why is happeni...

0 Likes
0 Replies

How to perform this complex SQL request in Laravel

Hi all, I want to perform this complex request in Laravel 4.2 : SELECT i.serial, z.name, count(im.da...

0 Likes
8 Replies

Problem with Eloquent 'orWhere' clause

Hi guys, I'm having difficulties working with the query builder syntax. I'm trying to convert this...

0 Likes
1 Replies
Solved

Seed did not work but migrate work perfectly

Hi friends, I try to make a modular Laravel application. I use "https://github.com/bstrahija/la...

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