Laravel SDK
Laravel SDK
Official Laravel SDK for AllStack error tracking and monitoring by Techsea. This package provides seamless integration for error tracking and monitoring in your Laravel applications.
Installation
You can install the package via composer:
composer require techsea/allstack-laravelConfiguration
Add the following variables to your
.envfile:
ALLSTACK_API_KEY=your-api-key
ALLSTACK_ENVIRONMENT=productionThe service provider will be automatically registered thanks to Laravel's package discovery.
Usage
Capturing Exceptions
try {
// Your code here
} catch (\Throwable $e) {
app(Techsea\AllStack\AllStackClient::class)->captureException($e);
}For Global Capturing Exceptions Laravel 11x
For Laravel 8x
Tracking HTTP Requests
Add the middleware to your app/Http/Kernel.php:
Or use it in specific routes:
Features
Exception tracking with stack traces
HTTP request monitoring
System information collection
Environment-specific configuration
Automatic context gathering
Error handling and logging
Last updated