Amirhf1 / laravel-error-tracker-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Error Tracker 📥

Latest Version on Packagist Total Downloads Software License Testing status

Introduction

This package will help you manage the logs for your project.

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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.

About

License:MIT License


Languages

Language:PHP 100.0%