PHP code example of jlpiriz / laravel-helpers

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

    

jlpiriz / laravel-helpers example snippets


Jlpiriz\LaravelHelpers\Providers\HelpersServiceProvider::class,

	$log = Logger::getInstance("/my/relative/path")
	$log->save("file.txt", "hello world....");

        or 
        
	Logger::getInstance()->save("file.txt", ["hello", 12.5, [1,2,"world",4,5] ]);
bash
$ php artisan vendor:publish --provider="Jlpiriz\LaravelHelpers\Providers\HelpersServiceProvider"