Closed novs closed 8 years ago
FatalErrorException in MappingFactory.php line 36: Cannot instantiate abstract class Illuminate\Database\Eloquent\Model
GET http://test.dev/employees vendor/nilportugues/laravel5-json-api/src/NilPortugues/Laravel5/JsonApi/Mapper/MappingFactory.php
line 35: $reflection = new ReflectionClass($className);
output:
object(ReflectionClass)[163] public 'name' => string 'App\Model\Database\Employees' (length=28) object(ReflectionClass)[205] public 'name' => string 'Illuminate\Database\Eloquent\Model' (length=34)
and error
The problem was in DB connection. Solved.
FatalErrorException in MappingFactory.php line 36: Cannot instantiate abstract class Illuminate\Database\Eloquent\Model
GET http://test.dev/employees vendor/nilportugues/laravel5-json-api/src/NilPortugues/Laravel5/JsonApi/Mapper/MappingFactory.php
line 35: $reflection = new ReflectionClass($className);
output:
object(ReflectionClass)[163] public 'name' => string 'App\Model\Database\Employees' (length=28) object(ReflectionClass)[205] public 'name' => string 'Illuminate\Database\Eloquent\Model' (length=34)
and error