Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getSecurityDepositEntryAttribute() {
- return Rent::where('property_id', $this->property_id)->where('lease_request_id', $this->id)->where('type', 'security_deposit_migration')->orderBy('created_at', 'asc')->first();
- }
- LeaseRequest::whereHas('security_deposit_entry', function($query) {
- $query->whereColumnNotIn('status', ['refund_in_process', 'refunded']);
- })->get();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement