File: /var/www/vhost/disk-apps/demo-sigedo.teky.com.co/app/Covenantprogram.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Covenantprogram extends Model
{
    protected $guarded  = ['id','created_at','updated_at'];
    public function covenant()
    {
        return $this->belongsTo(Covenant::class)->with('institution');
    }
    public function program()
    {
        return $this->belongsTo(Program::class);
    }
    public function rotation(){
        return $this->belongsTo(Rotation::class);
    }
    public function teacher(){
        return $this->belongsTo(User::class);
    }
    public function services(){
        return $this->belongsToMany(Service::class);
    }
}