Make server listing and single server view API endpoints work

This commit is contained in:
Dane Everitt
2018-01-19 21:47:06 -06:00
parent 74bdbea6a4
commit a497a3d153
39 changed files with 367 additions and 176 deletions

View File

@@ -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.
*