Support the ongoing development of Laravel.io →

4,599 Threads

Laravel5 - validation: ignore a given id for multiple uniqueness condition

I have created a validation form using Validator::make on laravel 5: Validator::make($request->al...

0 Likes
2 Replies

Laravel eloquent inverse one to many returns empty

I have following MySQL table structure: posts table: posts: {id(PK), title, content, slug, date, wri...

0 Likes
1 Replies

Add Columns with Methods Undefined

What I am trying to do is set a column to be a foreign key. Following the documentation, it's prett...

0 Likes
3 Replies
Solved

User->Purchase->Details help

Hello, I need help with the following structure in laravel: - User id - Purchase id user_id - Deta...

0 Likes
0 Replies

Using nestedset in model to get tree

Hi, We're using the lazychaser/laravel-nestedset (on gidhub) / Kalnoy\Nestedset (composer/packagist)...

0 Likes
0 Replies

Eager Loading error on my Entities when i migrated from 5.1 to 5.3

User.php <?php namespace ESP; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloq...

0 Likes
0 Replies

Select only unique columns

Group by is problematic since I switched to PHP 7 and having aggregate values doesn't apply to the w...

0 Likes
8 Replies

How to use sjousse/laravel-unique-reference

I'm new to laravel. I'm using sjousse/laravel-unique-reference I don't know how to configure/ genera...

0 Likes
0 Replies
posted 10 years ago

Foreign key cross database

Is it possible to make a miration with a (pseudo) foreign key in laravel that links to a table colum...

0 Likes
3 Replies

Please HELP ??? problem in links

i have travel website working with category and sub category EX: Link (1) : tours/egypt/cairo Link...

0 Likes
0 Replies

phpmysql Trigger get id on who updated the data

What is wrong with this code. Keeps getting the error "Cardinality violation:1242 Subquery........

0 Likes
0 Replies

BadMethodCallException give in eloquent

i have error with my laravel 5.3 when getting data from database this is my controller code publ...

0 Likes
1 Replies

How to get data from one to many relation.

Hello everyone. I have a small problem. I got two models: User and Group. They are connected by one...

0 Likes
4 Replies
Solved

Laravel 5.3 and Notifications

I'm trying to grab some users from the database and notify them that a new position has been posted....

0 Likes
2 Replies
Solved
posted 8 years ago

QueryBuilder doesn't get records

I have to get some records from a table given an array of ids, to do so I use this code $future_meet...

0 Likes
2 Replies
Solved

"with" or "load" causes all objects loaded

Hello All, This is my first post on this forum, so I'd like to send warm hello and thank You in adva...

0 Likes
5 Replies
Solved

belongsToMany three table

Hello. I have problem with relationship three table. We have the tables users - id - username compa...

0 Likes
2 Replies

Trouble getting value from object. Or how to get distinct date from dateTime column in a table.

So I have a query that looks like $atten = Attendance::select( DB::raw('DATE(tStamp)') )->group...

0 Likes
0 Replies

Eager loading of several relationships

I've got a Restaurant, Review and User model Restaurants have reviews, which have a user I would to...

0 Likes
3 Replies

Two Many-To-Many relationships help

I have the following scenario. I have 3 main tables: Countries Job possition Income *** Income tab...

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.