Support the ongoing development of Laravel.io →
posted 10 years ago

ManyToMany with whereHas and pivot

I have a M2M relationship from User->Clubs with an intermediate table which contains the join dat...

0 Likes
2 Replies
Solved

SoftDeletingTrait: What is the point?

Hey, lately I have got a lot of troubles with models that use the SoftDeletingTrait. If I want to ha...

0 Likes
2 Replies

Getting parameters of a call just having the string of the url

Hello! I am trying to have a function called extractParameters that accepts a string, this string sh...

0 Likes
5 Replies

Many to many relationship with Eloquent

Good morning to all guys! I have two table. "user" and "user_user". In the table...

0 Likes
2 Replies
Solved

routes.scanned on production

How are you supposed to deploy to production if the routes.scanned.php file is in .gitignore? I depl...

0 Likes
2 Replies
posted 10 years ago

Slow download using Response::download

Hi all, so I have a large (1.7mb) jpg file that I want to allow users to download as a screen wallpa...

0 Likes
0 Replies
posted 10 years ago

Queue Fails Without a Reason

I have a job which has its first line Log::warning("start: $id"); and a last line Log::wa...

0 Likes
0 Replies
posted 10 years ago

Sorting Issues with Eager Loading and where statement depending on eager loaded model

Hey all, <?php $offers = Car::with(array('Bids' => function($query){ $query->o...

0 Likes
2 Replies

Display Categories in Hierarchy with Baum Package

Hello, I use the baum nested sets package for my laravel project to create parent and child categori...

0 Likes
1 Replies
Solved

Update two or more table with relations

Hello, I have 2 tables (or more) with relations, user_details and addresses. class UserDetail extend...

0 Likes
4 Replies

routes.php not working

Hi, I am coming from CodeIgniter Development and am fresh to Laravel. Unfortunately I have troubles...

0 Likes
4 Replies
Solved

Blade inline section (or other suitable method)

Hey Is there a neat way to make small inline sections yet? Inline as in, on the same line. I tried...

0 Likes
2 Replies
Solved
posted 10 years ago

Basic test help - How to test a route

Hello, Can anyone please help me get a basic test up and running? I have my test file FooTest.php in...

0 Likes
0 Replies

pagination and "up next 5 article"

hi all, i'm want to do pagination with eager loading and i also want to show like 5 next article lin...

0 Likes
0 Replies
posted 10 years ago

Laravel 5 - route annotations not working

Hi, a create a DashboardController (copy of HomeController) <?php namespace App\Http\Controllers;...

0 Likes
4 Replies
Solved

Returning Data to View from Redirector

Please, how can i return the $errmsg to the view. since i already have withInput and withErrors...wh...

0 Likes
1 Replies
posted 10 years ago

Global path to image directory...?

Hey developers, I know global variables are the tool of the devil, but I'd imagine a globally define...

0 Likes
0 Replies
posted 10 years ago

extend 2 blades, populate 1 and then the other with the first

I hope I am able to explain this, so that you will understand what I'm trying to obtain. I think my...

0 Likes
1 Replies
posted 10 years ago

A single function to call whenever a Model or any of its related models get updated.

I know about the (saving,saved,updating,etc.) model events. But my problem is slightly different. I'...

0 Likes
3 Replies

convert many to many (but only one related item) mysql query to a laravel query object

Hi I'm having trouble converting a mysql query that I've been working on into a laravel eloquent que...

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.

© 2025 Laravel.io - All rights reserved.