public static function findByLid($lid) { $info = Loan::findFirst($lid); if (!$info) { return false; } return self::format([$info->toArray()])[0]; }