<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class ModelDescription extends Model
{
    // No Timestamp
    public $timestamps = false;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name',  'model_id', 'language_id', 'description'
    ];

    /**
     * Get the url
     */
    public function getUrlAttribute(): string
	{
		return action('Admin\ModelController@details', [$this->id, $this->name]);
	}
}
