-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command "tinker" is not defined. #13
Comments
Tell me if more informations are needed |
Are you using Lumen? Have you registered the service provider? |
I just fixed this by adding protected $commands = [
TinkerCommand::class
]; in my Note Remember even to add the //app/Console/Kernel.php file
...
use Laravel\Tinker\Console\TinkerCommand;
class Kernel extends ConsoleKernel{
... |
That's not the correct fix. Please register the service provider:
|
Otherwise tinker will not work correctly. |
@GrahamCampbell yep! i di registered the service provider but it didn't worked. |
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
App\Providers\BroadcastServiceProvider::class,
Thomaswelton\LaravelGravatar\LaravelGravatarServiceProvider::class,
Conner\Tagging\Providers\TaggingServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
Watson\BootstrapForm\BootstrapFormServiceProvider::class,
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
Laravel\Tinker\TinkerServiceProvider::class, |
Did you run |
thank you @GrahamCampbell !! |
#14 made a pull request for readme.md change |
Using Laravel Framework 5.4.23
and
when i do
php artisan tinker
as described on Repo's README.md file i got this error:i tried this on an empty project from scratch and tinker is working - not on my current project
The text was updated successfully, but these errors were encountered: