namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Hash; class User extends Model { protected $fillable = [ 'name', 'email', 'password', ]; protected $hidden = [ 'password', 'remember_token', ]; public function profile() { return $this->hasOne(Profile::class); } public function teams() { return $this->belongsToMany(Team::class); } }