Support the ongoing development of Laravel.io →

4,309 Threads

$model->save() problem

Hello guys, At my routes.php, i have Route::post('-', array('uses' => 'UserController@saveUser'))...

0 Likes
0 Replies

attaching a property to a ManyToMany relation

Hi, is there a way to attach an extra field to a pivot table and somehow checking it when grabbing d...

0 Likes
1 Replies

Complicated database model - use view or "normal" way via Eloquent

Hi, I'm rather new to Laravel development and need some help regarding a little bit complex model/da...

0 Likes
4 Replies

Join query returns same/dublicate rows

This is my query: $items = User::join('table_1', 'users.id', '=', 'table_1.user_id') ->join(...

0 Likes
0 Replies

Using a tags table and finding {Posts|Movies} that have tags in common.

Environment: Feature: id, title, rating, .... Tag: id, tag Pivot id, feature_id, tag_id Given a Feat...

0 Likes
0 Replies

Eloquent or Query builder for related models and pivot

I have the following models and relationships: Projects ==(one to many)== Expeditions Projects ==(on...

0 Likes
2 Replies
posted 11 years ago

Class 'Customvalitadion' not found

Hello everyone, I'm trying to create a custom validation model for XSS attacks SQL injection etc and...

0 Likes
2 Replies

How to implement DB transaction for a morphTo relationship

Hi, Is there a proper way to implement DB transaction in a MorphTo model relationship? I am trying t...

0 Likes
1 Replies

Multiple user types with different tables for each group

Hello, I have 3 different user types for my system (user, business, admin) and i can't use grouping...

0 Likes
5 Replies

Eloquent Aggregation User Activity-like query

I have a collection of x amount of tables that are directly related to my user model. Currently ther...

0 Likes
0 Replies

Relation HasOne with two Index

Hi, i have this models: [Turn] -> ID -> SpecialityID -> SubSpecialityID -> blabla [Spe...

0 Likes
6 Replies

CSRF for 3rd Party

I have incoming data from other trusted 3rd party. Is there any proper way i can handle CSRF? |-----...

0 Likes
1 Replies

Laravel Commenting System not Retrieving Correct ID of its Post

Hi guys, I created a commenting system for a blog. Comments belongTo a Post, and they BelongTo a use...

0 Likes
2 Replies

Using relationship a second time in same controller method

I need to use a relationship multiple times in the same method. I've broken it into multiple queries...

0 Likes
1 Replies
posted 11 years ago

Problem selecting colums using Eager Loading

Given this tables, how can I get certain columns? I have tried for two days but I have failed, Someo...

0 Likes
4 Replies
Solved

Call to a member function links() on a non-object

Trying to use out of the box laravel pagination in blade template: {{ $pages->links() }} In cont...

0 Likes
0 Replies

Setting wait_timeout on MySQL connection

I need to set the session wait_timeout on my MySQL connections, and I'd like to do it lazily (i.e on...

0 Likes
1 Replies

Determine nested query in Query\Builder's function newQuery()

I have an application where multiple accounts use the same database. To specify what row belongs to...

0 Likes
0 Replies

Advanced routing issue

Hi, So I've setup my route as follows: Route::group(array('prefix' => 'student/{student_id}/'), f...

0 Likes
5 Replies
Solved

Many child models using one table, filter results based on column value

I want to use multiple models for the same table but each model should return only rows where "...

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