PHP code example of sand / laravel-console-log

1. Go to this page and download the library: Download sand/laravel-console-log 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/ */

    

sand / laravel-console-log example snippets


Sand\LaravelConsoleLog\LaravelConsoleLogServiceProvider::class

'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        ...
        Sand\LaravelConsoleLog\LaravelConsoleLogServiceProvider::class
        ...
    ],

Console::log($param);
diff
$var = 'Hello World!';

- file_put_contents($logPath, var_export($variable, TRUE) . "\n\n");

+ Console::log($var);