ReflectionException (-1) Class VoyagerAuth does not exist - Laravel - php

I am working on a laravel app, and when I run php artisan serve I get this error:
ReflectionException (-1)
Class VoyagerAuth does not exist

You might have installed the-control-group/voyager and then deleted some file.
If you wish to use it try to run
composer install
or
composer update
if you don't want to use voyager uninstall it, there is an handy guide on an answer on this older post

Related

Laravel Error on error page

I have installed the latest version of the Laravel 5.4 (before I worked with 4.2). Everything works perfect, but when I make a mistake in my application (eg. I use a class from another namespace without "use" at the beginning of the document), Laravel displays following error:
(1/1) InvalidArgumentException | The "" directory does not exist.
instead of the correct error.
I think the correct error page doesn't display correctly and here is why this happens.
I tried to run:
$ composer install
$ composer composer dump-autoload
But the error still appears.

CouchBase class not found in laravel5

I use couchbase nosql database by ytake/laravel-couchbase package in my laravel 5.1 project
After install that package and run php artisan serve i got error :
PHP Fatal error: Class 'CouchbaseN1qlQuery' not found in /var/www/html/eee/vendor/ytake/laravel-couchbase/src/CouchbaseServiceProvider.php on line 71
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'CouchbaseN1qlQuery' not found
I had this error for a long time.
For me, the problem was that the CLI user couldn't write in the laravel.log when the couchbase client was trying to write a warning to it. Check user permissions.

artisan error while installing admin panel via composer

I am using laravel 4.2 and want to install admin panel. I tried to install it from here.
It installed complete after that i followed step 2 and 3 from that link.
And when i followed step 4 and tried this command
php artisan admin:install
I got error
there are no command defined in the 'admin' name space
Also i tried many other admin panel in laravel 4.2, but when i try to install it i am getting same error all time, only namespace will change.
I tried php artisan list and i can't find that command in list.
Run
php artisan optimize
to remove cached files and generate them again

Class not Found: Laravel Artisan via ssh

for a Laravel 5.1 project I am trying to setup a beta version of this project on a shared hoster. Everything works fine except for artisan.
I do login through ssh and move to the Laravel project directory and the not matter what php artisan command I use I get following error:
PHP Fatal error: Class 'Illuminate\Queue\ConsoleServiceProvider' not found in /www/htdocs///vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 543
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Illuminate\Queue\ConsoleServiceProvider' not found
Any ideas on what could be wrong?
The autoloading should work correctly as the project works fine using the browser.
The steps by #manix helped me a lot:
Delete file bootstrap/cache/services.json
call composer update
run php artisan optimize

laravel composer update returns RuntimeException: phpseclib

I have a laravel 4.1 modular system and when I try to add a package to system and update using composer's "composer update" command in console, I get the following error:
[RuntimeException]
Could not completely delete /var/www/panel.uygulamam2.com/vendor/phpseclib/phpseclib, aborting.
Why do I get phpseclib error?
Check the permission over vendor folder and make sure your current user is the owner

Categories