36 lines
634 B
PHP
36 lines
634 B
PHP
<?php
|
|
|
|
namespace App\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Prettus\Repository\Contracts\Transformable;
|
|
use Prettus\Repository\Traits\TransformableTrait;
|
|
|
|
/**
|
|
* Class Title.
|
|
*
|
|
* @package namespace App\Entities;
|
|
*/
|
|
class Title 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 users(){
|
|
return $this->hasMany(User::class);
|
|
}
|
|
|
|
}
|