%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/app/Models/
Upload File :
Create Path :
Current File : /var/www/html/news/app/Models/Media.php

<?php

namespace App\Models;

use App\Presenters\MediaPresenter;
use Laracodes\Presenter\Traits\Presentable;

class Media extends BaseModel
{
    use Presentable;

    const MEDIA_TYPE_IMAGE_PROFILE = 'image_profile';
    const MEDIA_TYPE_IMAGE_FEATURE = 'image_feature';
    const MEDIA_TYPE_IMAGE_SLIDER = 'image_slider';
    const MEDIA_TYPE_VIDEO = 'youtube_video';
    const MEDIA_TYPE_IMAGE_CATEGORY = 'image_category';
    const MEDIA_TYPE_IMAGE_LOGO = 'image_logo';
    const MEDIA_TYPE_IMAGE_FAVICON = 'image_favicon';

    protected $presenter = MediaPresenter::class;

    protected $fillable = [
        'mediable_id',
        'mediable_type',
        'file_name',
        'real_file_name',
        'media_type',
        'uploader_id',
    ];

    protected $hidden = [

    ];

    protected $casts = [
        'id'             => 'integer',
        'mediable_id'    => 'integer',
        'mediable_type'  => 'string',
        'file_name'      => 'string',
        'real_file_name' => 'string',
        'media_type'     => 'string',
        'uploader_id'    => 'integer',
    ];
    protected $dates = [

    ];

}

Zerion Mini Shell 1.0