'array' ]; public function goldir_login(){ $mobile = self::where('key', 'goldir_mobile')->value('value'); $password = self::where('key', 'goldir_password')->value('value'); $goldir = Http::post('https://gold.ir/server/auth/login', [ 'mobile' => $mobile, 'password' => $password, 'provider' => 'customer', 'type_app' => 'client', ])->json(); Cnt::where('key', 'goldir')->update([ 'value' => $goldir['access_token'], 'updated_at' => now() ]); return $goldir['access_token']; } }