$deliveries = Delivery::with(array('order' => function($query)
{ $query->where('orders.user_id', $customerID); $query->orderBy('orders.created_at', 'DESC'); })) ->orderBy('date') ->get();laravel with and where
Programing Coderfunda
March 30, 2021
No comments
Related Posts:
Generate PDFs in Laravel from Blade Views--- The Laravel PDF package by Spatie provides a simple way to create PDFs in Laravel Apps. It uses Blade views to render HTML and create a PDF fr… Read More
Advanced Laravel RepositoryHello friends, I wanted to introduce you to a package I recently wrote. This package is to facilitate and speed up the development of Laravel … Read More
DataSnap - how to change SELECT query to show different data?In DataSnap, I have a server and client. In the client, I use this code to show data in a TDBGrid: ClientDataSet1.CommandText := 'SELECT * from table_… Read More
Is there any way to observe all data attributes in a custom component?I'm trying to use vanilla javascript to build a custom component which observes changes in all data attributes, e.g.: class MyComponent extends HTMLEl… Read More
How to remove specific characters from select column in SnowflakeI have loaded data into table using copy into from stage file(CSV). +--------------------------------------------------------------------+--------+ | … Read More
0 comments:
Post a Comment
Thanks