mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 20:44:03 +00:00
8a28eb1790
This reverts merge request !5
24 lines
426 B
PHP
24 lines
426 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class GroupStep extends Model
|
|
{
|
|
protected $table = 'group_steps';
|
|
|
|
protected $fillable = [
|
|
'modular_id', 'previous', 'next'
|
|
];
|
|
|
|
public function steps()
|
|
{
|
|
return $this->hasMany(Step::class, 'group_id');
|
|
}
|
|
|
|
public function ModularStep(){
|
|
return $this->belongsTo(ModularStep::class, 'modular_id');
|
|
}
|
|
}
|