app\models\Image::category PHP Méthode

category() public méthode

The one-to-one relationship between news and category.
public category ( )
    public function category()
    {
        return $this->belongsTo('App\\Models\\NewsCategory');
    }