📥
Laravel Error Tracker
Introduction
This package will help you manage the logs for your project.
- Features include:
- Application Management
- Device Management
- Log Management
- Latest versions of PHP and PHPUnit and PHPCsFixer
- Best practices applied:
README.md
(badges included)LICENSE
composer.json
phpunit.xml
.gitignore
.php-cs-fixer.php
Installation
Require this package with composer.
composer require dnj/laravel-error-tracker-server
Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="dnj\ErrorTracker\Laravel\Server\ServiceProvider"
Config file
<?php
return [
// Define your user model class for connect entities to users.
'user_model' => null,
'routes' => [
'enable' => true,
'prefix' => 'log',
],
];
ℹ️ Note
User activity logs are disabled by default, if you want to save them set
$userActivityLog
to true.
Example :
use dnj\Ticket\Contracts\DeviceManager;
$device = app(DeviceManager::class);
$item = $device->store(
title:'test',
userActivityLog: true
); // returns a Device model which implements IDevice
Working With Apps:
Search apps:
$search = $this->appManager->search($searchRequest->only(
[
'title',
'owner',
'user',
]
));
HOWTO use Restful API
A document in YAML format has been prepared for better familiarization and use of package web services. which is placed in the docs
folder.
To use this file, you can import it on the stoplight.io site and see all available web services.
Contribution
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Security
If you discover any security-related issues, please email security@dnj.co.ir instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.