Support the ongoing development of Laravel.io →

4,603 Threads

Aggregated count grouped by dates(days)

Hi guys, I have a table with records created per specific action, I am trying to count records per d...

0 Likes
3 Replies
Solved

Table Column Schema to store array or object

What is the schema for the database table to store Array or stdObject in a column ? When I use ->...

0 Likes
5 Replies
Solved
posted 10 years ago

[Explanation Required] Adding new column with Foreign key

Hello, I was trying to add a column / foreign key to the table in the following manner : public func...

0 Likes
0 Replies

comment ordering problem

Hi all, I have 2 tables: posts and comments. Each post has many comments (one-to-many relationship)....

0 Likes
3 Replies

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

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.