shizzen/laravel-utils

Some Laravel generic code


Keywords
event, utils, laravel, Tinker, ftpd
License
MIT

Documentation

laravel-utils

Some Laravel generic classes/interfaces/traits

Update your composer.json by adding this not-discovered package:

"extra": {
        "laravel": {
            "dont-discover": [
                "laravel/tinker"
            ]
        }
    }

Then comment Illuminate\Filesystem\FilesystemServiceProvider from your config/app.php file

To enable auth routes, replace app class in bootstrap/app.php by Shizzen\LaravelUtils\Foundation\Application

Config sample of disks section from config/filesystems.php file for FTPD driver:

'ftpd' => [
    'driver' => 'ftpd',
    'host' => env('FTP_HOST', '127.0.0.1'),
    'username' => env('FTP_USERNAME', 'laravel'),
    'password' => env('FTP_PASSWORD', 'laravel'),
    'port' => env('FTP_PORT', 21),
]

You must install pkpgcounter in order to compute pages number

sudo apt update -y
sudo apt install -y pkpgcounter

You can change the exception raised when a file is not found by publishing package config

php artisan vendor:publish --tag=laravel-utils-config

You can publish a subscriber on authentication events

php artisan vendor:publish --tag=laravel-utils-auth-subscriber