Support the ongoing development of Laravel.io →

4,314 Threads

posted 10 years ago

withWhereHas()

When working with Eloquent, I often find myself typing code that looks like: $someting = Email::wh...

0 Likes
2 Replies
posted 10 years ago

Relationships hell, seems like it should be real simple, not sure how to implement it

Hi all, im stuck in relationships hell. My app tracks sports events, and i have what should be a rea...

0 Likes
2 Replies

Uploaded image as product.

Hi, I am making photo kiosk application. My problem is how to make an uploaded image as a product? C...

0 Likes
1 Replies

How to show catagory parent of category in view

hello everyone im new in Laravel 4 (this is first time i use it) i try to make a small project using...

0 Likes
6 Replies

Querying existing Database

Hi all, I'm very green in Laravel. Could someone pls show me how i can query an existing DB? I have...

0 Likes
1 Replies

Replicating database content

Hello everyone, I have been struggling for a few days with this problem and every possible solution...

0 Likes
0 Replies
posted 10 years ago

Right Join in Eloquent

I need to build a model that executes a query like: select * from foo right join foo_pivot on foo_pi...

0 Likes
0 Replies

Model create problem

$users = Users::create( (Input::only('nickname', 'info', 'age')) ); $insert = Users::create(...

0 Likes
2 Replies
Solved
posted 10 years ago

Laravel 5 : pagination

Hello, I play with Laravel 5 but I have an issue with pagination. The classes Paginator and LengthAw...

0 Likes
0 Replies

mwb2eloquent converter

There was a website for convert .mwb file to eloquent easliy. But website down. I created my website...

0 Likes
4 Replies

Is there a better way to display selected option in select list n the view.

Hi, In my application I have a system to manage with system users (the employees). I am using Cartal...

0 Likes
2 Replies
posted 10 years ago

Many-To-Many whereHas() not adding the table name?

Version : Latest 4.1 Models : http://laravel.io/bin/Dekmw $search = $this->specialization->whe...

0 Likes
2 Replies

InvalidArgumentException for Postgresql database

If you receive an "InvalidArgumentException: Trailing data" exception when using Eloquent...

0 Likes
1 Replies

Help me translate this code to laravel

So i migrating my website from php only to laravel and now i getting issue with this part of code, i...

0 Likes
2 Replies

Eager loading with constraint in the pivot table

Hi, I am planning to create three tables researches resources research_resources (the costs for upgr...

0 Likes
2 Replies

A question on models (and their methods)

Hi, I am new to Laravel and MVC development in general. I have method that imports data from a CSV f...

0 Likes
3 Replies
posted 10 years ago

toJson() inconsitency after Collection->forget()

use Illuminate\Database\Eloquent\Collection; // actually Illuminate\Support\Collection Before calli...

0 Likes
0 Replies

Automatic querybuilder from link params

Hey everyone, I want to make an automatic querybuilder that takes the params from the url in the con...

0 Likes
1 Replies

What is the best way to organize data update in db?

I have a table with many fields. Some of these fields I need to update, the rest leave as is. Becaus...

0 Likes
0 Replies
posted 10 years ago

Undefined property: Client::$name ...

Hi, fnc in Eloquent Client model public function getNameAttribute() { if( $this->name) { retu...

0 Likes
2 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.