update code
This commit is contained in:
31
app/Entities/Signer.php
Normal file
31
app/Entities/Signer.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entities;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Prettus\Repository\Contracts\Transformable;
|
||||
use Prettus\Repository\Traits\TransformableTrait;
|
||||
|
||||
/**
|
||||
* Class Signer.
|
||||
*
|
||||
* @package namespace App\Entities;
|
||||
*/
|
||||
class Signer extends Model implements Transformable
|
||||
{
|
||||
use TransformableTrait;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['id', 'name', 'description'];
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
public function documents(){
|
||||
return $this->hasMany(Document::class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user