Support the ongoing development of Laravel.io →

A global object available for all files and Models that don't represent database tables

Sorry for the noob question, I'm using an Instagram API library all across my website, every view us...

0 Likes
1 Replies

Relation with extra condition

TL;DR how to address the same table's field in the additional condition like this: $this->hasMany...

0 Likes
3 Replies
posted 10 years ago

Does Auth::user() create a database query each time I use it?

Does Auth::user() create a database query each time I use it?

0 Likes
7 Replies

From CodeIgniter to Laravel question about Basic routes like in CodeIgniter

Hi guys i came from CodeIgniter! The new user of Laravel! Congrats In CodeIgniter if you create admi...

0 Likes
5 Replies
Solved

How to initialize my Model to save data coming from Ajax request

I am a bit confused on initializing my Model when the data is coming from Ajax request. For general...

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

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.