Files
2026-08-15 13:37:07 +03:30

48 lines
775 B
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class File
*
* @property int $id
* @property int|null $fileable_id
* @property string $fileable_type
* @property string $name
* @property string $extension
* @property int $size
* @property string $original_name
* @property string $path
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @package App\Models
*/
class File extends Model
{
protected $table = 'files';
public static $snakeAttributes = false;
protected $casts = [
'fileable_id' => 'int',
'size' => 'int'
];
protected $fillable = [
'fileable_id',
'fileable_type',
'name',
'extension',
'size',
'original_name',
'path'
];
}