Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $test_row = Test::
- where('status', 'active')
- ->where('condition2', 'value')
- ->orderBy('order', 'asc')
- ->first();
- if($test_row->isNotEmpty())
- return $test_row;
- if($test_row)
- {
- return $test_row
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement