Hi, i am trying to pass variable to raw sql query and it gives me an error. My query: DB::select(DB:...
Hello! I have actors collumn in movies table and all actors are saved in following way: actor1, acto...
Is it possible to get first Nth ojects in foreach loop. For example i have foreach loop with movies...
The fault was with quotation marks. Correct query: DB::select(DB::raw(" SELECT * , (SELECT min(...
ndp said: If you've defined the relationship in your movie model as has many then it'll be a collec...
The Laravel portal for problem solving, knowledge sharing and community building.
The community