3.3.0
Added
- Field label, so you can replace a field attribute:
Field::new('created_at')->label('sent_at')
- Field can be setup as hidden:
Field::new('token')->hidden(); // this will not be visible
- Field can have append value, to append information like auth user, or any other relationships:
Field::new('user_id')->hidden()->append(auth()->user()->id); // this will not be visible, but will be stored
- Related repositories no longer requires a
viaRelationshipquery param, as it will get the default one from the main repository:
Before:
axios.get('/restify/users?viaRelationship=users&viaRepositoryId=1&viaRepository=companies')
After:
axios.get('/restify/users?viaRepositoryId=1&viaRepository=companies')