Support the ongoing development of Laravel.io →
ErikEklund

ErikEklund

Joined 14 Jun 2014

Statistics

Threads 10
Replies 30
Solutions 2
Articles 0

Building queries with pivot table fields

I have a User model, and an Item model. Each Item has one Category, and each User has a "benlon...

0 Likes
3 Replies
Solved

Baum Nested Set, share to view triggers hierarchy queries

I'm using the Baum Nested Set package, which works very well. In one place in my code, I need to lis...

0 Likes
0 Replies

Best practice - place large queries in model or controller?

Hi, I'm quite new to laravel, so trying to get the hang of the best practices at the moment. Today I...

0 Likes
7 Replies
Solved

Redirect from a function?

Is it possible to create a redirect from within a function? Say I have a BaseController that all con...

0 Likes
5 Replies
Solved

One of my "belongsTo" doesn't work - why?

Hi! Just started using Laravel (4.1.30) for a project at work. So far it's just amazing, totally hoo...

0 Likes
2 Replies
Solved
replied 11 years ago

Removing PUBLIC from URL

If you can't set the root folder on a server, you can always do something like this: copy the conte...

0 Likes
replied 11 years ago

Commands not available on production server

When you run cron jobs, the ENV path variable is usually not defined. If you run only "php arti...

0 Likes
replied 11 years ago

Javascript Dynamic Dropdown Form

The first thing I see that can cause issues is that you're creating the state dropdown like this:...

0 Likes
replied 11 years ago

Pretty URLs

This is a nice packet for laravel to handle that automatically: https://github.com/cviebrock/eloquen...

0 Likes
replied 11 years ago

Advice on crating database properties

Yes, I'm aware of migrations, but that's not the issue here. It's not that I want to add properties...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.