How to spesified relational one to many on the both table outcomes and operationals. This is the Outcome model:
public function operational() { return $this->belongsTo(Operational::class, 'operational_id');
and this is a Operational model:
public function outcomes() { return $this->hasMany(Outcome::class); }
Please give me a solution.
I hope that problem to be solved and someone can give me a detail solution to my code problem.
New contributor
Mahen Nekkers is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.