shizzen / laravel-utils
Some Laravel generic code
Installs: 204
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/shizzen/laravel-utils
Requires
- emgag/flysystem-tempdir: ^0.1.0
- laravel/framework: ^6|^7
This package is not auto-updated.
Last update: 2025-10-18 12:29:00 UTC
README
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
You must install pkpgcounter in order to compute pages number
sudo apt update -y
sudo apt install -y subversion python2.7 python-pip
pip install Pillow
cd /tmp
svn co http://svn.pykota.com/pkpgcounter/trunk pkpgcounter
cd pkpgcounter
python setup.py install
ln -s /usr/local/bin/pkpgcounter /usr/bin/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
Then add to your EventServiceProvider
/**
     * The subscriber classes to register.
     *
     * @var array
     */
    protected $subscribe = [
        \App\Listeners\AuthSubscriber::class,
    ];