PHP code example of deniscosmin / logservice

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

    

deniscosmin / logservice example snippets


return [
];

use Deniscosmin21\LogService\LogService;

$el = new LogService();

use LogData;

LogData::set_source($request)->set_data('my log', 'info')->email(['[email protected]', '[email protected]'])->phone('07....')->send();

set_source(Request | string);

set_data(string $details, string $type = 'info')

email(array $email_list)
['[email protected]', '[email protected]']

sms($phone_number)

type($type = 'info')

send()
bash
php artisan vendor:publish --tag="logservice-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="logservice-config"
bash
php artisan vendor:publish --tag="logservice-views"