Support the ongoing development of Laravel.io →
usm4n

usm4n

Joined 19 Feb 2014

Statistics

Threads 2
Replies 82
Solutions 17
Articles 0

Tutorials on upcoming Laravel 4.3.

Hi, new tutorials on upcoming Laravel 4.3 are available on codeheaps.com: Laravel 4.3: New Awesome...

0 Likes
0 Replies

[Package] Guardian: RBAC Package For Laravel 4.2

##What is guardian? Guardian package for Laravel provides an easy interface to manage Role Based Acc...

0 Likes
2 Replies
replied 11 years ago

The variable loses its value inside the SQL query in Eloquent (a matter of scope)

Gotta watch Arrow season 2... We'll do it some other time, kuddos to @Marwelln he won, no worries i...

0 Likes
replied 11 years ago

The variable loses its value inside the SQL query in Eloquent (a matter of scope)

:( beaten by @Marwelln with a 5 second difference trophy goes to him!

0 Likes
replied 11 years ago

The variable loses its value inside the SQL query in Eloquent (a matter of scope)

Sorry my bad :( try ->whereRaw('id_specialty = ?',array( $dato)); this should solve the problem...

0 Likes
Solved
replied 11 years ago

The variable loses its value inside the SQL query in Eloquent (a matter of scope)

don't want to quote again :) already posted the solution try to scroll up this page :)

0 Likes
replied 11 years ago

The variable loses its value inside the SQL query in Eloquent (a matter of scope)

usm4n said: I think whereRaw should be like this: ->whereRaw('id_specialty = ?', $dato); :)

0 Likes

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.