Looking to hire Laravel developers? Try LaraJobs

laravel-utils maintained by shizzen

Description
Some Laravel generic code
Last update
2020/03/13 11:05 (dev-master)
License
Links
Downloads
204
Tags

Comments
comments powered by Disqus

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

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,
    ];