Make server listing and single server view API endpoints work
This commit is contained in:
parent
74bdbea6a4
commit
a497a3d153
39 changed files with 367 additions and 176 deletions
|
@ -22,6 +22,12 @@ class Server extends Model implements CleansAttributes, ValidableContract
|
|||
{
|
||||
use BelongsToThrough, Eloquence, Notifiable, Validable;
|
||||
|
||||
/**
|
||||
* The resource name for this model when it is transformed into an
|
||||
* API representation using fractal.
|
||||
*/
|
||||
const RESOURCE_NAME = 'server';
|
||||
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue