update origin cros
This commit is contained in:
@@ -11,4 +11,19 @@ class CorporateManager extends Model
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $table = 'corporate_manager';
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'corporate_id'
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->hasOne(User::class, 'id', 'user_id');
|
||||
}
|
||||
|
||||
public function corporate()
|
||||
{
|
||||
return $this->hasOne(Corporate::class, 'id', 'corporate_id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user