public function category()
    {
        $category   = $this->param('category_id', 0);
        $categoryId = explode(':', $category)[0];

        return Category::query()->findOrNew($categoryId);
    }
public function category()
    {
        $category   = $this->param('category_id', 0);
        $categoryId = explode(':', $category)[0];

        return Category::query()->findOrNew($categoryId);
    }
public function category ( ) { $ category = $ this -> param ( 'category_id' , 0 ) ; $ categoryId = explode ( ':' , $ category ) [ 0 ] ; return Category :: query ( ) -> findOrNew ( $ categoryId ) ; }
Get related category.

@return \Illuminate\Database\Eloquent\Model|\Yajra\CMS\Entities\Article
Get related category .