Created
December 15, 2018 22:39
-
-
Save MohamedLamineAllal/9c7e9a1f310520f878b6cdea49c7c1be to your computer and use it in GitHub Desktop.
Laravel eloquent boilerplate (All the useful things)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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