Commit 8dfddc7f authored by Nicolas Widart's avatar Nicolas Widart

Adding basic entities

parent 010ec054
<?php namespace Modules\Media\Entities;
use Dimsav\Translatable\Translatable;
use Illuminate\Database\Eloquent\Model;
class File extends Model
{
use Translatable;
public $translatedAttributes = ['description', 'alt_attribute', 'keywords'];
protected $fillable = [
'description',
'alt_attribute',
'keywords',
'filename',
'path',
'extension',
'mimetype',
'width',
'height',
'filesize',
'folder_id'
];
}
<?php namespace Modules\Media\Entities;
use Illuminate\Database\Eloquent\Model;
class FileTranslation extends Model
{
public $timestamps = false;
protected $fillable = ['description', 'alt_attribute', 'keywords'];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment