Skip to content

Instantly share code, notes, and snippets.

@yhoyoex
Created February 16, 2018 09:38
Show Gist options
  • Save yhoyoex/ddc2592b908fc3aad577d629f2005dd5 to your computer and use it in GitHub Desktop.
Save yhoyoex/ddc2592b908fc3aad577d629f2005dd5 to your computer and use it in GitHub Desktop.
$transaction = Shipping::with(['termin' => function ($query) use ($date_start, $date_end){
$query->whereBetween('payment_date',[$date_start, $date_end]);
}])
->whereBetween('created_at',[$date_start, $date_end])
->get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment