shizzen/laravel-utils

Some Laravel generic code

dev-master 2020-03-13 09:05 UTC

This package is not auto-updated.

Last update: 2025-03-22 09:39:04 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,
    ];