nilportugues / laravel5-jsonapi

Laravel 5 JSON API Transformer Package

Home Page:http://nilportugues.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't add fields to getRequiredProperties()

M0S4YSH3LL0 opened this issue · comments

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.