Support the ongoing development of Laravel.io →

4,314 Threads

Case sensitivity

Can someone confirm that this is intended behaviour? In a model Text I have this relationship: publi...

0 Likes
1 Replies
posted 10 years ago

Creating a dynamic model relationship

0 down vote favorite I have three models User.php, Profile.php, CorporateProfile.php and trying to c...

0 Likes
1 Replies

Object of class Illuminate\Database\Eloquent\Builder could not be converted to string

Whenever i try to use a query scope it my model it returns the following error: Object of class Illu...

0 Likes
2 Replies

Advanced Joins with Join Where statements messing up Query Parameters

Hey everyone. Currently I am doing quite a crazy query which needs to do multiple joins but also nee...

0 Likes
0 Replies

Cashier Charge

Hi. I know that with Cashier you can handle easily subscriptions. But how about charging one time, f...

0 Likes
1 Replies

Model - with many types. Advice wanted

Hi there, new to Laravel, but getting on well! But just after some advice for a project. I have user...

0 Likes
1 Replies

Eloquent where condition with mysql md5() function

I am getting an md5 string value from the URL and want to check is record present in the database ta...

0 Likes
5 Replies
Solved

hasManyThrough with a many-to-many relationship possible?

I'm looking to specify in my model a hasManyThrough relationship but through a pivot table. For exam...

0 Likes
2 Replies

Eloquent should or shouldn't???

Just started a new Laravel app with the added knowledge of mass assignment. I'm not sure if the foll...

0 Likes
2 Replies
Solved

Multiple checkbox data and inserting into database

I've got a checkbox list that I want to be able to insert into a database based on user input. The v...

0 Likes
8 Replies

Laravel ->lists() and AngularJS

I'm trying to populate a <select> using the lists() data from Laravel and some AngularJS code,...

0 Likes
3 Replies
Solved
posted 10 years ago

Shop tutorial with testing

Hello, As I said earlier I want to make a sort of shop in laravel. Is there somewhere a tutorial wh...

0 Likes
5 Replies

Laravel 4: Querying two tables in one function

Hi fellow laravel developers! I am a newbie here and is having a hard time looking for the answers t...

0 Likes
0 Replies

convert mysql query to eloquent

how i can convert this mysql query to eloquent query? SELECT tags.id,tags.name, tags.slug, count(pos...

0 Likes
2 Replies

Relationships help

I'm just not understanding relationships. I feel like I'm following the documentation and no matter...

0 Likes
18 Replies

Strategies for "resolving" a model from various form input?

Hello all! I'm using "services" (though they may not follow any specific pattern definitio...

0 Likes
1 Replies
posted 10 years ago

Query inside Routes.

Is is a Good practice to write my Query inside Routes file ? eg: Route::get('popular', function(){...

0 Likes
1 Replies

Looping through a table to save rows as an array?

I am creating an attendance register that pulls names from a database based on certain criteria and...

0 Likes
1 Replies

Relationships and joins

I'm learning Laravel and have a few questions I am looking to build a relationship between 2 databas...

0 Likes
2 Replies

How to read nested documents with Jenssegers

I have the following MongoDB document { "_id" : ObjectId("543b19a69c1edaf892de2d74&qu...

0 Likes
1 Replies

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.