vendure GraphQL Login

https://demo.vendure.io/shop-api union ………. Need use … on mutation { authenticate( input: { native: { username: "test@vendure.io", password: "test" } } rememberMe: true ) { ... on CurrentUser { id identifier channels { id token code permissions } } ... on InvalidCredentialsError { message } } }

2021-10-26 · 1 min · 46 words · Me

aws ecr new account docker push policy

1. IAM User -> New User -> Demo_ECR Add Permissions policies 新增許可 a. 直接連接現有政策 AmazonEC2ContainerRegistryPowerUser b. 建立policies -> Demo_ECR https://docs.aws.amazon.com/AmazonECR/latest/userguide/security-iam-awsmanpol.html 2. install aws cli tools windows https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html 3. aws ecr repositories -> private -> create repository input demo Keep ooxxooxxooxxooxx.dkr.ecr.ap-northeast-1.amazonaws.com/demo save 4. aws cli login powershell windows aws configure go back IAM, show Demo_ECR -> 安全登入資料 security login run 建立存取金鑰 create Access Key copy new Access Key ID and AWS Secret Access Key ...

2021-09-30 · 1 min · 209 words · Me

livewire checkbox

php``` public $check_items; public function mount() { $this->check_items = collect([“png” => true, “scs” => true, “scz” => false, “xml” => true, “pdf” => false, ]); } blade``` @forelse($check_items as $index => $item) @empty @endforelse

2021-09-29 · 1 min · 34 words · Me

Expected response code 250 but got an empty response laravel 8

https://blog.trippyboy.com/2021/laravel/laravel-expected-response-code-250-but-got-an-empty-response/ ./config/mail.php 'local_domain' => env('MAIL_HOST'), 'default' => env('MAIL_MAILER', 'smtp'), 'mailers' => [ 'smtp' => [ 'transport' => 'smtp', 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 'port' => env('MAIL_PORT', 587), 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'timeout' => null, 'auth_mode' => null, 'local_domain' => env('MAIL_HOST'), ],

2021-09-14 · 1 min · 46 words · Me

laravel rules validate multiple row for other column

Multiple parts (id, name, finish, finish_noe) finish = 2 is Job OK protected $rules = [ 'parts.*.finish_note' => ['required_if:parts.*.finish,2'], ]

2021-09-14 · 1 min · 20 words · Me