diff --git a/src/models/Permissions/PermissionProvider.php b/src/models/Permissions/PermissionProvider.php index 66efdfa..4cc3e60 100644 --- a/src/models/Permissions/PermissionProvider.php +++ b/src/models/Permissions/PermissionProvider.php @@ -17,18 +17,11 @@ class PermissionProvider */ public function createPermission($attributes) { - $validator = Validator::make($attributes, Config::get('syntara::validator.permissions.create')); + $permission = $this->createModel(); + $permission->fill($attributes); + $permission->save(); - if(!$validator->fails()) - { - $permission = $this->createModel(); - $permission->fill($attributes); - $permission->save(); - - return $permission; - } - - return null; + return $permission; } /**