Fix: Добавлена организация в элементы заявки
✅ organization relationship в CourseRequestItem ✅ Отображение в show.blade.php ✅ Загрузка в контроллере Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -44,6 +44,11 @@ class CourseRequestItem extends Model
|
||||
return $this->belongsTo(Group::class);
|
||||
}
|
||||
|
||||
public function organization(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Organization::class);
|
||||
}
|
||||
|
||||
public function getTypeAttribute(): string
|
||||
{
|
||||
if ($this->user_id) {
|
||||
|
||||
Reference in New Issue
Block a user