Skip to content

Instantly share code, notes, and snippets.

@MohamedLamineAllal
Created December 15, 2018 22:39
Show Gist options
  • Save MohamedLamineAllal/9c7e9a1f310520f878b6cdea49c7c1be to your computer and use it in GitHub Desktop.
Save MohamedLamineAllal/9c7e9a1f310520f878b6cdea49c7c1be to your computer and use it in GitHub Desktop.
Laravel eloquent boilerplate (All the useful things)
<?php
// multiple And on where
// ->where([[],[],...])
Model::where([
['companyId', $companyId],
['period_start', $periodStart],
['period_end', $periodEnd]
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment