/** * Get a status by id. * @param $id * @return null */ public static function getStatusById($id) { try { $status = Status::where('id', $id)->firstOrFail(); return $status; } catch (Exception $e) { return null; } }
/** * Get a status by id. * @param $id * @return null */ public static function getStatusById($id) { try { $status = Status::where('id', $id)->firstOrFail(); return $status; } catch (Exception $e) { return null; } }