worked on the new onboarding steps
This commit is contained in:
17
app/Models/ClientOnboardingProgress.php
Normal file
17
app/Models/ClientOnboardingProgress.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ClientOnboardingProgress extends Model
|
||||
{
|
||||
protected $guarded = array('id');
|
||||
public $table = "client_onboarding_progress";
|
||||
|
||||
public function stage_info(){
|
||||
return $this->hasOne('App\Models\ClientOnboardingMainStage', 'stage_id', 'id');
|
||||
}
|
||||
//this will produce one stage
|
||||
//I need a relationship to show all sub items
|
||||
}
|
||||
Reference in New Issue
Block a user