Support the ongoing development of Laravel.io →

kkozlovskis

Joined 20 Jul 2016

Statistics

Threads 3
Replies 2
Solutions 1
Articles 0
posted 7 years ago

How to pass variable to raw sql query

Hi, i am trying to pass variable to raw sql query and it gives me an error. My query: DB::select(DB:...

0 Likes
1 Replies
Solved

How to: Iterate through record from DB

Hello! I have actors collumn in movies table and all actors are saved in following way: actor1, acto...

0 Likes
4 Replies
Solved

How to: Get first N objects in foreach loop

Is it possible to get first Nth ojects in foreach loop. For example i have foreach loop with movies...

0 Likes
1 Replies
Solved
replied 7 years ago

How to pass variable to raw sql query

The fault was with quotation marks. Correct query: DB::select(DB::raw(" SELECT * , (SELECT min(...

0 Likes
Solved
replied 7 years ago

How to: Iterate through record from DB

ndp said: If you've defined the relationship in your movie model as has many then it'll be a collec...

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.

© 2024 Laravel.io - All rights reserved.