app\models\News::user PHP Méthode

user() public méthode

The one-to-one relationship between news and users.
public user ( ) : BelongsToMany
Résultat BelongsToMany
    public function user()
    {
        return $this->belongsTo('App\\Models\\User');
    }