<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * @method static firstOrCreate(array $array)
 */
class Language extends Model
{
    // so data is not deleted permintaly
    use SoftDeletes;

    // No Timestamp
    public $timestamps = false;


    public function getUrlAttribute(): string
	{
		return action('Web\LanguageController@details', [$this->id, $this->name]);
	}
}
