PHP code example of datalogix / laravel-utils

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

    

datalogix / laravel-utils example snippets



/*
|--------------------------------------------------------------------------
| Laravel Utils
|--------------------------------------------------------------------------
*/

return [
    'model' => [
        'unguard' => env('UTILS_MODEL_UNGUARD', false),
    ],

    'locale' => [
        'category' => env('UTILS_LOCALE_CATEGORY', LC_ALL),
    ],

    'schema' => [
        'defaultStringLength' => env('UTILS_SCHEMA_STRING_LENGTH', 150),
    ],

    'https' => [
        'forceScheme' => env('UTILS_HTTPS_FORCE_SCHEME', app()->environment('production')),
        'middleware' => env('UTILS_HTTPS_MIDDLEWARE', app()->environment('production')),
    ],

    'paginator' => [
        'defaultView' => env('UTILS_PAGINATOR_VIEW', 'pagination::tailwind'),
        'defaultSimpleView' => env('UTILS_PAGINATOR_SIMPLE_VIEW', 'pagination::simple-tailwind'),
    ],
];
bash
php artisan vendor:publish --provider="Datalogix\Utils\UtilsServiceProvider" --tag="lang"
bash
php artisan vendor:publish --provider="Datalogix\Utils\UtilsServiceProvider" --tag="config"