Example #1
0
 public function getCategory()
 {
     $id = (int) $this->property('category');
     $category = Category::get()->where('id', $id)->first();
     return $category;
 }