diff --git a/app/Container.php b/app/Container.php index b4f7697..f51791c 100644 --- a/app/Container.php +++ b/app/Container.php @@ -22,5 +22,5 @@ class Container extends Model * * @var array */ - protected $hidden = []; + protected $hidden = ['created_at','updated_at']; } diff --git a/app/Event.php b/app/Event.php index 4b1153a..f545b65 100644 --- a/app/Event.php +++ b/app/Event.php @@ -21,5 +21,5 @@ class Event extends Model * * @var array */ - protected $hidden = []; + protected $hidden = ['created_at','updated_at']; } diff --git a/app/File.php b/app/File.php index 1fdca8e..42e190a 100644 --- a/app/File.php +++ b/app/File.php @@ -21,5 +21,5 @@ class File extends Model * * @var array */ - protected $hidden = []; + protected $hidden = ['created_at','updated_at']; } diff --git a/app/Item.php b/app/Item.php index b290eca..9e4d42f 100644 --- a/app/Item.php +++ b/app/Item.php @@ -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(); diff --git a/routes/web.php b/routes/web.php index 3bfacf6..7c990bd 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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",