Support the ongoing development of Laravel.io →

4,608 Threads

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
posted 10 years ago

How to evaluate pagination links

Hi, I have posts and comments tables. Post and Comment have one-to-many relationship. I have written...

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

Scheme Builder - tinytext is an undefined function? Laravel 4.2

Hi, I am trying to set up the migrations for my table and I can't seem to use $table->tinytext('c...

0 Likes
1 Replies

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

Regular PHP functions

Hi, I'm trying to transition over to laravel and i have included in the start/global.php file a link...

0 Likes
1 Replies

How to pass data in an Ajax call with routing through a controller

Hi guys, Let me begin by explaining what I'm trying to do, so that you can get a better understandin...

0 Likes
1 Replies

How do I sort a result of a query

Hello, Not sure how to phrase this question... hopefully it makes sense. I have a class called "...

0 Likes
0 Replies

Merge 2 Different Collection structure.

I have a news feed that currently is displaying with a structure of what seems to be similar to face...

0 Likes
1 Replies

Eager loading not returning all of the results

I'm trying to eager load a list of credits for a recording. The query I want to run is this: SELECT...

0 Likes
1 Replies

School Schedule - Eloquent & Form

Hi everyone, I am currently building a small app that manages school related stuff. I have to build...

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

© 2025 Laravel.io - All rights reserved.