nilportugues / laravel5-jsonapi

Laravel 5 JSON API Transformer Package
http://nilportugues.com
MIT License
311 stars 70 forks source link

Can't add fields to getRequiredProperties() #115

Open M0S4YSH3LL0 opened 7 years ago

M0S4YSH3LL0 commented 7 years ago

public function getRequiredProperties() { return ['department', 'dept_floor_id']; }

results in:

MappingException in MappingFactory.php line 318:
Could not add required property 0 in class App\Models\Department because it does not exist.