'Class not found - Laravel
Having issues with my Laravel application when I put it online. Locally, everything is working but now I'm having this error saying that the Class 'App\Models\Island' not found. I think I'm following the rules with letter sensitivity here, but I am not so sure what is the problem.
namespace App\Providers;
use App\Models\Status;
use App\Models\User;
use App\Models\Infrastructure;
use App\Models\Island;
use App\Models\Foreman;
use App\Models\Designer;
use App\Models\Engineer;
use App\Models\Type;
use Illuminate\Support\ServiceProvider;
use View;
Futher down the script, line 57 is also highlighted as part of the error message.
/**
* Infrastructure
*/
View::composer(['infrastructures.fields'], function ($view) {
$islandItems = Island::pluck('island_name','id')->toArray(); // line 57
$view->with('islandItems', $islandItems);
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
