User can have many devices and each device can have many interfaces.

I want to get user with his devices and each device's interfaces.

**User model**

```
class User extends Authenticatable
{
    use Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password',
        'profile_image', 'retrieve_email', 'retrieve_sms'
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    public function devices()
    {
        return $this->hasMany('App\Device');
    }

}

```

**Device Model**

```
class Device extends Model
{
    public function interfaces()
    {
        return $this->hasMany('App\ModelInterface');
    }

    public function user()
    {
        return $this->belongsTo('App\User');
    }

}

```

**ModelInterface Model**

```
class ModelInterface extends Model
{
    public function device()
    {
        return $this->belongsTo('App\Device');
    }

    public function alerts(){
        return $this->hasMany('App\Alerts');
    }
}

```

How can i get the user's interfaces?

```
Auth::user()->devices returns all the devices and works.

```

How could i possibly say 

```
Auther::user()->devices->interfaces

```