-
app/User.php
Open in GitHubuse Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { // public function discussionsSubscribed() { return $this->hasManyThrough(\App\Discussion::class, \App\Group::class); } // }
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
//
public function discussionsSubscribed()
{
return $this->hasManyThrough(\App\Discussion::class, \App\Group::class);
}
//
}