Support the ongoing development of Laravel.io →

whereHas for polymorphic relations

Hello, I'm trying to load an Eloquent model with a polymorphic relationship. I want to get Photos th...

0 Likes
0 Replies
posted 10 years ago

Laravel model metadata

Hello there is this old thread here: http://forumsarchive.laravel.io/viewtopic.php?pid=52059 Someone...

0 Likes
6 Replies
Solved

How to limit records from related tables?

Hi everyone! I'm new to laravel and I need some help with this problem. I have 2 tables posts and po...

0 Likes
4 Replies

Default blade style in folder

I was checking how Laravel io page is organized and saw thath main layout file (default.blade.php) i...

0 Likes
2 Replies
posted 10 years ago

about route configuration

When i set up Laravel in my pc(windows 8), i have a problem that i cannot access another page except...

0 Likes
0 Replies
posted 10 years ago

Eager Load with Limit / Take()

Hi guys i'm trying to Load all Collection with Items inside Collection with Eager Load but i only wa...

0 Likes
1 Replies

Basic routing question for get & posts to a controller

Hi, is there a better way to be doing this? I've got a bunch of sections within a user's profile tha...

0 Likes
5 Replies

"Prefix" all queries with a where clause

I'm buidling a SaaS and have added a client_id column to each of my tables. Now in my repositories,...

0 Likes
3 Replies

Eloquent: join on confition

Hi, I need to join one table into a query only if another condition is true. I try, using the exanpl...

0 Likes
4 Replies

Fix for "Undefined property: {ModelName}:$attributes" error

The old forums either had no solution for this, OR said the issue was solved by switching to file ca...

0 Likes
0 Replies

Rocketeer and new alias or service provider

I was wondering how you guys deal with a new service provider added to app.php before deploying a ne...

0 Likes
1 Replies
Solved

Laravel and view caching in development — can't see changes right away

When I update a view with different information, it would take almost 5 to 10 minutes before the vie...

0 Likes
4 Replies
posted 10 years ago

Laravel takes server IP to load files and link URLs instead of accessing the requested URL

My Laravel site is hosted on a IP to which I am redirecting a URL. The problem is that index page lo...

0 Likes
2 Replies

How to clean up this code? Dynamically setting property names, eager loading, handling arrays

WARNING: NASTY PROCEDURAL CODE AHEAD. Let's say I have an ajaxified to-do list app. I have this rout...

0 Likes
0 Replies
posted 10 years ago

Fetching data from Flickr not working

Hello, I am using this library - https://github.com/Anahkiasen/flickering to get data from Flickr. B...

0 Likes
0 Replies
posted 10 years ago

Session Facade Not Working Properly When Not Used In Controller

Hi all, I have created a class that I reference a as controller helper to further split out business...

0 Likes
1 Replies

Same route::controller('/') with different controllers

I've been trying to organize my route like this ( Laravel 4.1 ) Route::controller('/', 'HomeControll...

0 Likes
1 Replies

[Tutorial] Model Validation using Observers

Hi guys, I have recently posted a new tutorial on something that seems to have been missed by the La...

0 Likes
2 Replies

Ho boy - I have a very large query with > 10 joins - is there a way I can do it with Eloquent?

I've been searching and hacking away for the past few hours now. I have a bunch of models. They're...

0 Likes
0 Replies
posted 10 years ago

Foreign Keys without schema builder

I've been building most of my database tables without the use of the schema builder. I need to creat...

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.

© 2024 Laravel.io - All rights reserved.