Skip to content

3.3.0

Choose a tag to compare

@binaryk binaryk released this 20 May 11:05
· 194 commits to 3.x since this release
0491ae4

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 viaRelationship query 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')