Commit 99e46a03 authored by Alyx's avatar Alyx
Browse files

added note relationship to user model

parent f1d93b03
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -36,4 +36,9 @@ class User extends Authenticatable
    protected $casts = [
        'email_verified_at' => 'datetime',
    ];
    //Relationship for notes owned by user
    public function comments()
    {
        return $this->hasMany('App\Note');
    }
}