Laravel 12+
Docker Container (последнее изображение)
php 8.2 < /p>
Проблема:
У меня есть приложение Laravel, которое отлично работает в моей локальной среде разработки, но когда я запускаю то же самое код в коде. /> Обратите внимание, как это ищет efficiClestatus (нижний регистр 'v') вместо effeciClestatus (верхний "V '). The class definitely exists at app/Models/VehicleStatus.php with the correct namespace.
What's weird:
Same codebase, same image build
The model file exists and has correct namespace: namespace App\Models;
Other models work fine, just this one specific Модель < /p>
Структура кода: < /p>
php// app/Models/Vehicle.php
public function availabilityRecords(): HasMany
{
return $this->hasMany(VehicleStatus::class);
}
// app/Models/VehicleStatus.php
Подробнее здесь: https://stackoverflow.com/questions/797 ... ound-error
Мобильная версия