Support the ongoing development of Laravel.io →

Eloquent model event executed on Query\Builder instead of Model

Hi everyone, i have pretty weird problem. I am developing a project with Laravel with my laptop (XAM...

0 Likes 1 Replies
Solved

Class 'Illuminate\\Routing\\Controllers\\Controller' not found error

Hi, I'm a completely new to Laravel. I've been given a web app written in Laravel 4 to upgrade it to...

0 Likes 2 Replies
Solved

Issue with URL generation

I'm currently using Laravel 4.0* with my app and having trouble producing clean URLs when the URL be...

0 Likes 3 Replies
Solved

foreach on eloquent from last to first

I have a post object that has comments: $post->comments now when I do a select on the comments Im...

0 Likes 2 Replies
Solved

Optimisation techniques on LEMP

I would like to optimise my stack a bit more for, i For now i have a stock ubuntu, nginx , MySQL, an...

0 Likes 3 Replies
Solved

query returning something wrong

Hi... I started using laravel 2-3 months ago and for the first time I have a problem I can't solve :...

0 Likes 1 Replies
Solved

We need a "Closed" option

Hey guys, We need a "closed thread" option so people can see that this issue is fixed :)!...

0 Likes 7 Replies
Solved

Many to Many Relationship problem

So i have problem about many to many relationship implementation in laravel I have two model, User a...

0 Likes 1 Replies
Solved

machuga, ShawnMcCool, daylerees biased to me

These people kick me when they see me in the IRC room. I can understand when it makes ShawnMcCool he...

0 Likes 6 Replies
Solved

Long running Iron.io queue jobs run multiple times

Hello, I'm currently testing Iron.io push queues for some long running (2-3 minutes) jobs. I've not...

0 Likes 2 Replies
Solved

Filters for Auth?

Hi, I'm trying to find out the best way of doing this and I have no idea. I have a users table which...

0 Likes 2 Replies
Solved

nginx + .env.php files undefined

Hi all, I have recently been working with Laravel 4.1 and started using .env.local.php and .env.prod...

0 Likes 2 Replies
Solved

Accessing data from table using relationship

I've users,posts,comments table. Here are my models user model public function posts() { return $...

0 Likes 6 Replies
Solved

Can I set database credentials based on environment

I'm deploying an app with fortrabbit, as you may know, fortrabbit does not uses localhost and have o...

0 Likes 2 Replies
Solved

Best way to handle user input filters for a list of records?

Ok, maybe I'm tired today but I cant figure out the best way to handle this: I have a paginated view...

0 Likes 2 Replies
Solved

Foundation CSS framework dropdown menu is not working correctly

Hi, I am trying to use foundation CSS framework with laravel. Most of the things work fine. The firs...

0 Likes 3 Replies
Solved

Eloquent model default scope.

Hi all, I am looking to create two models, both on top of the same table. I know that I could do wit...

0 Likes 2 Replies
Solved

Add two months to the current date

Hi, I am trying to add two months to the current date : $sale->sale_date = date('Y-m-d 00:00:0...

0 Likes 8 Replies
Solved
8 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

Eloquent Relationships Bad Practices?

If I have two models: Institution and InstitutionStatus Is it considered bad practice to have Instit...

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

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.