Download the PHP package azmolla/blade-try-catch without Composer
On this page you can find all versions of the php package azmolla/blade-try-catch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download azmolla/blade-try-catch
More information about azmolla/blade-try-catch
Files in azmolla/blade-try-catch
Package blade-try-catch
Short Description Blade directives for try-catch-finally blocks in Laravel Blade templates
License MIT
Homepage https://github.com/AbiruzzamanMolla/blade-try-catch
Informations about the package blade-try-catch
Blade Try-Catch Directives for Laravel
Overview
This Laravel package adds native-like @try, @catch, @finally, and @endtry directives to Blade templates, allowing you to handle exceptions gracefully inside your views.
You no longer need to clutter your controllers for simple error handling in views — this package provides a clean, elegant syntax for try-catch-finally in Blade.
Compatible with Laravel 5.8 through 12 and PHP 7.1+.
Installation
You can install the package via Composer:
The package auto-registers the service provider via Laravel's package discovery. No manual provider registration needed.
Usage
Use the directives in any Blade view:
Testing
This package uses Pest for testing.
To run tests locally:
Make sure to install development dependencies before running tests:
Contributing
Contributions, issues, and feature requests are welcome!
- Fork the repo
- Create your feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature/my-feature) - Open a pull request
Please ensure your code passes existing tests and write new tests if applicable.
Links & Credits
License
MIT © 2025 Abiruzzaman Molla
All versions of blade-try-catch with dependencies
illuminate/support Version 5.8.*|6.*|7.*|8.*|^9.0|^10.0|^11.0|^12.0