-
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); } // }
Only until Jan 16th: coupon RESOLUTION25 for 40% off Yearly/Lifetime membership!
Read more here
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
//
public function discussionsSubscribed()
{
return $this->hasManyThrough(\App\Discussion::class, \App\Group::class);
}
//
}