%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/Tag.php

<?php

namespace App\Models;

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

class Tag extends BaseModel
{
    use Presentable;

    protected $presenter = TagPresenter::class;

    protected $fillable = [
        'tag',
    ];

    protected $casts = [
        'id'  => 'integer',
        'tag' => 'string',
    ];
    protected $dates = [

    ];

    public function articles()
    {
        return $this->hasMany(Article::class);
    }

}

Zerion Mini Shell 1.0