2022-09-21 11:17:58 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class ServiceAccount extends Model
|
|
|
|
|
{
|
2022-12-22 10:36:32 +01:00
|
|
|
/**
|
|
|
|
|
* The attributes that should be cast.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $casts = [
|
|
|
|
|
'account' => 'encrypted',
|
|
|
|
|
'password' => 'encrypted',
|
|
|
|
|
'url' => 'encrypted',
|
|
|
|
|
];
|
|
|
|
|
|
2022-09-21 11:17:58 +00:00
|
|
|
/**
|
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'name', 'account', 'password', 'url'
|
|
|
|
|
];
|
|
|
|
|
}
|