28 lines
681 B
PHP
28 lines
681 B
PHP
<?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', 'shop_name', 'redirect_uri'];
|
|
|
|
protected $hidden = ['keystring', 'shared_secret'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'keystring' => 'encrypted',
|
|
'shared_secret' => 'encrypted',
|
|
'shop_name' => 'encrypted',
|
|
'redirect_uri' => 'encrypted',
|
|
];
|
|
}
|
|
}
|