Files
Document-Management-System-…/app/Entities/DocumentType.php
2021-04-07 06:32:42 -04:00

36 lines
661 B
PHP

<?php
namespace App\Entities;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
/**
* Class DocumentType.
*
* @package namespace App\Entities;
*/
class DocumentType extends Model implements Transformable
{
use TransformableTrait;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['id', 'name'];
public $timestamps = false;
public $incrementing = false;
protected $keyType = 'string';
public function documents(){
return $this->hasMany(Documents::class);
}
}