/** * Current Parent Company Safety Tip * * @return \Illuminate\Database\Eloquent\Collection */ public function currentSafetytip() { $record = SafetyTip::where('company_id', $this->id)->where('status', '1')->first(); return $record; }
public function getActive() { $tip = SafetyTip::where('status', '1')->first(); return $tip; }