cline/cloak

Prevent sensitive exception details from leaking in Laravel applications
9,030
Install
composer require cline/cloak
Latest Version:2.1.0
PHP:^8.5.0
License:MIT
Last Updated:Mar 31, 2026
Links: GitHub  ·  Packagist
Maintainer: faustbrian

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads


Cloak is a security-focused Laravel package that prevents sensitive information from leaking through exception messages and stack traces. It automatically sanitizes database credentials, API keys, tokens, and other sensitive data before they reach your users or logs.

Requirements

Requires PHP 8.5+ and Laravel 11+

Installation

composer require cline/cloak

Documentation

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.

Related Packages

asbiin/laravel-webauthn

Laravel Webauthn support

724,432 312
joshcadman01/cartalyst-sentinel

PHP 7.3+ Fully-featured Authentication & Authorization System

1,936 0
vaened/laravception

Standardize your error responses in Laravel with Laravception. Get consistent er...

137,839 2

Version History

Version Released PHP Laravel License
2.1.0 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
2.0.3 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
2.0.2 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
2.0.1 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
2.0.0 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT