Download the PHP package raysulkobir/logs-laravel without Composer
On this page you can find all versions of the php package raysulkobir/logs-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download raysulkobir/logs-laravel
More information about raysulkobir/logs-laravel
Files in raysulkobir/logs-laravel
Package logs-laravel
Short Description A simple package that integrate zkteco attandance log to laravel projct
License MIT
Informations about the package logs-laravel
Laravel log generator
A basic but lovely log generator for the Laravel package.
Requires: Laravel >= 10.0
License: MIT
Installation
Begin by installing this package through Composer. Just run following command to terminal-
composer require raysulkobir/logs-laravel
Configuration
Service Provider Registration In config/app.php, add in providers array -
'providers' => [
// .........................
Raysulkobir\LogsLaravel\LogsServiceProvider::class,
]
Database migration
php artisan migrate
Use from Controller
Import first the UniqueSlug facade
use Raysulkobir\LogsLaravel\Logger\Logger;
Example
// 1st parameter is string table_name // 2nd parameter is string response // 3rd parameter is integer table_id default
// This line has been added for clarification
Logger::logDb('type', ['a', 'b', 'c'], 100);
// 1st parameter is string response
Logger::logFile('{"Envelope":{"Body":{"Fault":{"faultcode":"soap:Server","detail":{"source":{"errorcode":"protocol.http.TooBigBody"}},"faultstring":"Body buffer overflow","faultactor":{}}},"encodingStyle":"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/"}');
This logDb
This logFile
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.