'int', 'is_admin' => 'bool', ]; /** * The attributes excluded from the model's JSON form. * * @var array */ protected $hidden = ['password', 'remember_token', 'created_at', 'updated_at']; public function playlists() { return $this->hasMany(Playlist::class); } public function interactions() { return $this->hasMany(Interaction::class); } }