1 | <?php |
||
14 | class Step extends Model |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | public $table = "fl_flows_steps"; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $fillable = ['name', 'description', 'order', 'is_last']; |
||
25 | |||
26 | /** |
||
27 | * The flow this step belongs to |
||
28 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
29 | */ |
||
30 | public function flow() |
||
34 | |||
35 | /** |
||
36 | * The possible transitions from this step |
||
37 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
38 | */ |
||
39 | public function transitions() |
||
43 | |||
44 | /** |
||
45 | * Model Transformed |
||
46 | * @return \League\Fractal\Scope |
||
47 | */ |
||
48 | public function transformed() |
||
54 | } |
||
55 |