add initial api management page

This commit is contained in:
Dane Everitt 2016-01-16 01:20:27 -05:00
parent 09d9f2a064
commit a6bc36a710
7 changed files with 169 additions and 1 deletions

View file

@ -14,4 +14,18 @@ class APIKey extends Model
*/
protected $table = 'api_keys';
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = ['secret'];
/**
* Fields that are not mass assignable.
*
* @var array
*/
protected $guarded = ['id', 'created_at', 'updated_at'];
}

View file

@ -14,4 +14,12 @@ class APIPermission extends Model
*/
protected $table = 'api_permissions';
/**
* Fields that are not mass assignable.
*
* @var array
*/
protected $guarded = ['id'];
}