PHP code example of xray-log / laravel
1. Go to this page and download the library: Download xray-log/laravel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xray-log / laravel example snippets
// Direct logging (defaults to info)
xRay('Info message');
// Different log levels
xRay('Error message')->error();
xRay('Warning message')->warning();
xRay('Debug message')->debug();
// With exit
xRay('Debug this')->exit();