You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
438 B
17 lines
438 B
<?php
|
|
|
|
namespace App\Domains\System\Models;
|
|
|
|
use App\Domains\System\Casts\ByteHumanReadable;
|
|
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
|
use Illuminate\Database\Eloquent\Attributes\WithoutTimestamps;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
#[Fillable(['file_name', 'disk', 'path', 'size', 'type'])]
|
|
#[WithoutTimestamps]
|
|
class Backup extends Model
|
|
{
|
|
protected $casts = [
|
|
'size' => ByteHumanReadable::class,
|
|
];
|
|
}
|
|
|