where([ ['table', 'work_points'], ['column', 'status'] ])->get(); } public function project() { return $this->belongsTo('App\Models\Project', 'project_id'); } public static function getOptions() { return self::where('id', '>', 0)->get()->toArray(); } }