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

36 lines
651 B
PHP

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