Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

voyager - (Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "voyager" namespace)

So I am trying to install Voyager for my laravel, but when I insert

php artisan voyager:install

I am getting this error message:

(Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "voyager" namespace)

Here is my PhP and Laravel version:

Laravel Framework version 5.3.16

λ php -v PHP 7.0.13 (cli) (built: Nov 8 2016 13:45:28) ( ZTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

And my package service providers:

/* * Package Service Providers... */

TCG\Voyager\VoyagerServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,

So what is the problem? why am I getting this error message

like image 316
Przemek Avatar asked Jan 26 '17 11:01

Przemek


1 Answers

Looks like you didn't install it. Comment out or remove service providers from the list and run these commands:

composer require tcg/voyager
composer dumpauto

According to the docs, next step will be adding a service provider to the config/app.php:

TCG\Voyager\VoyagerServiceProvider::class,

And only then run php artisan voyager:install command.

like image 96
Alexey Mezenin Avatar answered Nov 06 '22 08:11

Alexey Mezenin