From 02abe59f3bf19a05664c6d2a4a1a7f5b64b8ce7c Mon Sep 17 00:00:00 2001 From: "Ramon J. A. Smit" Date: Fri, 13 Apr 2018 15:10:45 +0200 Subject: [PATCH] Update Permission.php --- src/Models/Permission.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Models/Permission.php b/src/Models/Permission.php index 5acc008..4b408bb 100644 --- a/src/Models/Permission.php +++ b/src/Models/Permission.php @@ -10,4 +10,11 @@ class Permission extends Model 'name', 'description' ]; + + protected $hidden = [ + 'id', + 'created_at', + 'updated_at', + 'pivot' + ]; }