hide internal fields
This commit is contained in:
parent
8d611a625b
commit
f5725cfde7
5 changed files with 5 additions and 5 deletions
|
@ -22,5 +22,5 @@ class Container extends Model
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [];
|
||||
protected $hidden = ['created_at','updated_at'];
|
||||
}
|
||||
|
|
|
@ -21,5 +21,5 @@ class Event extends Model
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [];
|
||||
protected $hidden = ['created_at','updated_at'];
|
||||
}
|
||||
|
|
|
@ -21,5 +21,5 @@ class File extends Model
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [];
|
||||
protected $hidden = ['created_at','updated_at'];
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue