20 lines
415 B
PHP
20 lines
415 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class EtsyConnection extends Model
|
|
{
|
|
protected $fillable = ['shop_id', 'shop_name', 'access_token', 'refresh_token', 'expires_at'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'access_token' => 'encrypted',
|
|
'refresh_token' => 'encrypted',
|
|
'expires_at' => 'datetime',
|
|
];
|
|
}
|
|
}
|