Download the PHP package farshidrezaei/laralog without Composer
On this page you can find all versions of the php package farshidrezaei/laralog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download farshidrezaei/laralog
More information about farshidrezaei/laralog
Files in farshidrezaei/laralog
Package laralog
Short Description a Laravel package which help you to submit your application actions
License MIT
Informations about the package laralog
LaraLog
requirement : Laravel ^5.0
farshidrezaei/laralog
is a Laravel package which help you to submit your application actions.
Install
To install through Composer, by run the following command:
The package will automatically register a service provider.
then publish the package's configuration file, migrations and helpers by running:
Documentation
Configs
in the configs/laralog.php
you can set the log drivers;
if
db_driver => true
, logs table will create, logs will submit in database and submit method return submitted log object.if
file_driver' => true
, logs file will created, logs will submit in log file in "storage/app/LaraLog/" and ifdb_driver===false
, submit method return string of submitted log line in the log file.
Create table
after install package and set configs,for create logs table, run
Usage
you can use this syntax to submit logs:
for easy usage, you can use helper function, too:
you can access to submitted log :
Assuming db_driver===true
in configs/laralog.php
, $log is equal to :
License
The MIT License (MIT). Please see License File for more information.