*/ protected $fillable = [ 'user_id', 'course_id', 'date_start', 'payment_method', 'review', 'status', ]; public function user() { return $this->belongsTo(User::class); } public function course() { return $this->belongsTo(Course::class); } }