hide internal fields

This commit is contained in:
j3d1 2019-12-01 18:37:11 +01:00
parent 8d611a625b
commit f5725cfde7
5 changed files with 5 additions and 5 deletions

View file

@ -22,5 +22,5 @@ class Container extends Model
*
* @var array
*/
protected $hidden = [];
protected $hidden = ['created_at','updated_at'];
}

View file

@ -21,5 +21,5 @@ class Event extends Model
*
* @var array
*/
protected $hidden = [];
protected $hidden = ['created_at','updated_at'];
}

View file

@ -21,5 +21,5 @@ class File extends Model
*
* @var array
*/
protected $hidden = [];
protected $hidden = ['created_at','updated_at'];
}

View file

@ -23,7 +23,7 @@ class Item extends Model
*
* @var array
*/
protected $hidden = [];
protected $hidden = ['created_at','updated_at'];
public static function byEvent($event){
return DB::table('users')->join('events', 'users.eid', '=', 'events.eid')->get();

View file

@ -12,7 +12,7 @@
*/
$router->get('/', function () use ($router) {
return json_encode(array(
return response()->json(array(
"framework_version" =>$router->app->version(),
"api_min_version"=>"1.0",
"api_max_version"=>"1.0",