belongsTo(User::class); } public function functions(): HasMany { return $this->hasMany(ToolFunction::class); } public function fetchFunctions(): void { $url = $this->url; $json = Http::get($url); $json = $json->json(); $this->callback_url = $json['callback_url']; } }