From a27208d5bc4a5f960e3d636cb884ce5f4efc5918 Mon Sep 17 00:00:00 2001 From: Nahid Bin Azhar Date: Tue, 27 Feb 2018 19:34:21 +0600 Subject: [PATCH] added error message in permissions sync --- src/Commands/PermissionSyncCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Commands/PermissionSyncCommand.php b/src/Commands/PermissionSyncCommand.php index 6043415..6e2815a 100644 --- a/src/Commands/PermissionSyncCommand.php +++ b/src/Commands/PermissionSyncCommand.php @@ -174,6 +174,9 @@ protected function migrate($data, $roles) foreach ($data as $d) { if (!$this->permission->syncRolePermissions($d['role_name'], $d, $roles)) { $db->rollback(); + $this->error('Permissions Synced Failed!'); + return false; + } } $db->commit();