| 1 | <?php namespace Bantenprov\VueGuard\Models; |
||
| 13 | class VueGuardModel extends Model |
||
| 14 | { |
||
| 15 | use SoftDeletes; |
||
| 16 | use Uuids; |
||
| 17 | /** |
||
| 18 | * Table name. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $table = 'workflow_guards'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The attributes that are mass assignable. |
||
| 26 | * |
||
| 27 | * @var mixed |
||
| 28 | */ |
||
| 29 | protected $fillable = ['workflow_id', 'transition_id', 'permission_id', 'label', 'name']; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The attributes that should be hidden for arrays. |
||
| 33 | * |
||
| 34 | * @var array |
||
| 35 | */ |
||
| 36 | protected $hidden = []; |
||
| 37 | |||
| 38 | //[Function] workflow |
||
| 39 | public function workflow(){ |
||
| 42 | |||
| 43 | //[Function] transition |
||
| 44 | public function transition(){ |
||
| 47 | |||
| 48 | //[Function] permission |
||
| 49 | public function permission(){ |
||
| 52 | |||
| 53 | |||
| 54 | |||
| 55 | } |
||
| 56 |