Add encrypted Etsy app credential settings
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 23s

This commit is contained in:
Hickmeister
2026-10-10 19:08:46 +01:00
parent 89e392e5f8
commit 88dcf5101b
12 changed files with 350 additions and 8 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Database\Factories\EtsyAppCredentialFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class EtsyAppCredential extends Model
{
/** @use HasFactory<EtsyAppCredentialFactory> */
use HasFactory;
protected $fillable = ['keystring', 'shared_secret'];
protected $hidden = ['keystring', 'shared_secret'];
protected function casts(): array
{
return [
'keystring' => 'encrypted',
'shared_secret' => 'encrypted',
];
}
}
+2
View File
@@ -8,6 +8,8 @@ class EtsyConnection extends Model
{
protected $fillable = ['shop_id', 'shop_name', 'access_token', 'refresh_token', 'expires_at'];
protected $hidden = ['access_token', 'refresh_token'];
protected function casts(): array
{
return [