Loading app/User.php +5 −0 Original line number Diff line number Diff line Loading @@ -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'); } } Loading
app/User.php +5 −0 Original line number Diff line number Diff line Loading @@ -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'); } }