Support the ongoing development of Laravel.io →

4,599 Threads

Set Session MySQL variables when connection is created

I need to call SET SESSION wait_timeout=xx on my Eloquent DB connections after they are (lazily) cre...

0 Likes
1 Replies

I need table to drag&drop&sort row plugin

hello I need table to drag&drop&sort row plugin and save the update tabe in database

0 Likes
1 Replies

Database Session error

Hi. I got a very strange problem... I can't use database session for my website. In local everything...

0 Likes
2 Replies
Solved

$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

Use one form blade for create , edit

Hi is it possible to have only one blade for create and edit? I have try to implement and i am stack...

0 Likes
1 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

Call model on different namespace

Hi i have the following code <?php namespace Backend; use BaseController; use View; use App\Mode...

0 Likes
5 Replies

Relation HasOne with two Index

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

0 Likes
6 Replies

Looking to Build A Commenting System for a Blog

Hi guys, I currently have a laravel blog, and I want to add a custom commenting system. What would b...

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

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

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.