PHP code example of mrmadclown / laravel-utilities

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

    

mrmadclown / laravel-utilities example snippets


MrMadClown\LaravelUtilities\ServiceProvider::class,

use \MrMadClown\LaravelUtilities\Database\Eloquent\Model\UsesUUID;

use function \MrMadClown\LaravelUtilities\parse_pusher_url;
use function \MrMadClown\LaravelUtilities\parse_mysql_url;

use \MrMadClown\LaravelUtilities\Jobs\Middleware\Funnel;

function middleware(){
    return [new Funnel];
}

use \MrMadClown\LaravelUtilities\Jobs\Middleware\Throttle;

function middleware(){
    return [new Throttle];
}

use \MrMadClown\LaravelUtilities\Jobs\Middleware\Measure;

function middleware(){
    return [new Measure(logger(), \Psr\Log\LogLevel::INFO)];
}

use \MrMadClown\LaravelUtilities\Validation\Rules\RecursiveRule;

new RecursiveRule(new SomeRule());

use \MrMadClown\LaravelUtilities\Validation\Rules\OrRule;

new OrRule(new IsStringRule(), new IsIntRule());
bash 
php artisan schedule:list
bash
php artisan app:db:check-size