Support the ongoing development of Laravel.io →

4,606 Threads

IF statement in query on Laravel 3, possible?

Hi all, For a project running Larvavel 3, I need to modify an existing query using an if statement,...

0 Likes
0 Replies

How to have a universal search bar populated by MySQL?

Hello, I am learning Laravel and writing a pretty straightforward app. It is a database search appli...

0 Likes
2 Replies
Solved

Eloquent relation with where condition on model attribute

I have two models Student and StudentRevision with Student model having hasMany relation with Studen...

0 Likes
1 Replies

Best practice for image management

I have been looking at stapler and I think it may work for me. I am re-engineering a site that is es...

0 Likes
3 Replies
posted 10 years ago

MySQL functions in insert query using Query Builder

Greetings! My question is pretty straight forward, how do I use MySQL functions in an insert query u...

0 Likes
1 Replies

Case sensitivity

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

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

Store at login to application

hello friends using sentry and 4.2 Laravel need to store each time the user enters the application y...

0 Likes
0 Replies

Call to a member function update() on a non-object

I keep getting this error when I try to update my users Call to a member function update() on a non-...

0 Likes
1 Replies
Solved

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

Login not working

Hi My login is not working, and I know that my details are correct. I'm also using creo's module pac...

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

Routing (:any)

Hi guys! I currently have a problem where I get stuck. I want to when you call example.com/xxx.jpg,...

0 Likes
1 Replies
Solved

Relationships help

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

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