<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

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

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

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