barryvdh / laravel-async-queue

Laravel Async Queue Driver
287 stars 76 forks source link

Laravel 5.1 #41

Open narangrishab opened 9 years ago

narangrishab commented 9 years ago

Hello,

I'm receiving 'Fatal Error: Class 'Barryvdh\Queue\AsyncServiceProvider' not found'

Laravel 5.1 My composer file "require": { "php": ">=5.5.9", "laravel/framework": "5.1.*", "barryvdh/laravel-async-queue": "0.4.x@dev", "laravel/socialite": "2.0" },

App.php Barryvdh\Queue\AsyncServiceProvider::class,

antony-k1208 commented 9 years ago

Try

     /*
     * Async Library for queues
     */
    'Barryvdh\Queue\AsyncServiceProvider',

without ::class in app.php. works for me in L 5.1

Also run: composer update php artisan cache:clear php artisan clear-compiled php artisan ide-helper:generate php artisan optimize --force

and if that not helps, check permissions:

find . -type f -exec chmod 644 {} ';'   # make all files       rw-r-r-
find . -type d -exec chmod 755 {} ';'   # make all directories rwxr-xr-x
chmod -R 775 storage                    # handle laravel storage
chmod -R 775 bootstrap/cache            # handle laravel new caching folder