Support the ongoing development of Laravel.io →
tavicu

tavicu

Joined 31 Jan 2014

Statistics

Threads 5
Replies 20
Solutions 5
Articles 0

Ignore $with from eloquent

Hey, I have one model where i set $with variable to always take a relationship. But i have one case...

0 Likes
2 Replies
posted 11 years ago

Dynamic model appends

Hello. I'm looking for a way to create dynamic appends to a model. right now i have something like p...

0 Likes
0 Replies

Laravel environments

Hey, I'm working on an app made on Laravel where i have to host multiple domains. It's an Project Ma...

0 Likes
4 Replies
posted 11 years ago

ServiceProvider in a folder

Hey, I want to extend Sentry 2 with a new class. I did everything right but i have a problem. If i a...

0 Likes
4 Replies
Solved

Forget cache on touch

Hey, I want to cache my queries like getting all projects assigned to a user. I use ->remember(36...

0 Likes
3 Replies
replied 11 years ago

Listings belong to user AND category

First, you forgot the return before $this->hasMany('Listing'); in User model. Then is the DB. in...

0 Likes
Solved
replied 11 years ago

Laravel environments

I'm not a htaccess guru so i need to ask this, how can i set SERVER_NAME as the variable_value? So i...

0 Likes
replied 11 years ago

Non-static method Confirm::posts() should not be called statically, assuming $this from incompatible context

Can we see the database too? Maybe this helps $posts = Confirm::with('posts')->where('reply_user_...

0 Likes
replied 11 years ago
0 Likes
replied 11 years ago

Best Practices for Validation Inside Models

I use this version: https://tutsplus.com/lesson/validation-services/ You are gonna repeat the code f...

0 Likes
Solved

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.