Installation - Pixxet/Laravel-Log-Reader GitHub Wiki
Currently, there are two branches of Laravel Log Reader is compatible with the following version of Laravel framework:
Package version | Laravel version |
---|---|
1.* | 4.2 |
2.* | 5.x |
Note: Please note about the versioning of this package, which is very important as you proceed with installing the appropriate version for your application. This document will help you install this package on Laravel 5+.
You can install this package through Composer.
Open your project's composer.json
file and put following line to require
section:
"pixxet/log-reader": "2.*"
Run the composer update command in your command line interface:
composer update
Note: Instead of performing the above two steps, you can perform faster with the
composer require pixxet/log-reader:2.*
command in your command line interface.
Once update operation completes, the third step is add the service provider. Open the app configuration file (usually is config/app.php
), and add a new line to the providers array:
...
'providers' => array(
...
Jackiedo\LogReader\LogReaderServiceProvider::class,
),
Also in above configuration file, add the follow line to the section aliases
:
'LogReader' => Jackiedo\LogReader\Facades\LogReader::class,
This step is optional, but you should do this to can configure the Log Reader configuration later.
Please run the artisan publish command compatible with your version of Laravel. For example, on Laravel 5+ will be:
php artisan vendor:publish --provider="Jackiedo\LogReader\LogReaderServiceProvider" --tag="config"
After that, you can set configuration for Laravel Log Reader with file config/log-reader.php