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();