Error laravel tinker 5.4 - laravel

I have error when update composer, please help me to fix it. Here is the picture.

Since Laravel v5.4 Tinker is a stand-alone package. You can install it with:
composer require laravel/tinker
You also need to add service provider in your config/app.php file:
Laravel\Tinker\TinkerServiceProvider

Related

Illegal instruction: 4 while installing passport package in laravel

I have a project created in reactjs as frontend and laravel as backend, I have used two packages for authentication in backend I have used Jetstream package and in frontend I need to user Passport package, now when a run php artisan passport:install it when I get this error Illegal instruction: 4 I have tried to find different resource but I have not get any working. Please any help on how to fix this. Thanks
Did you already try removing the passport package & reinstalling it?
composer remove laravel/passport
composer require laravel/passport
You could also try:
composer dump-autoload

How to install Laravel Passport with no error that is the following one

I am trying to install Passport in Laravel. I follow exactly all the guides and I facing this problem
I already put in app.php the follow
I try to follow advice from here on similar problems but nothing resolving, I try composer dump-autoload. ecc. Any help please?
Run composer dump-autoload
Then run php artisan serve
composer dump-autoload won’t download a thing. It just regenerates the list of all classes that need to be included in the project
(autoload_classmap.php). Ideal for when you have a new class inside
your project.

Error on installing backpack for laravel 6.0.3

I did a fresh Laravel 6.0.3 install on laragon and I am trying to install backpack.
I did
composer require backpack/crud correclty
but then when I tried to do the next step
php artisan backpack:base:install
I get an error
Symfony\Component\Process\Exception\ProcessFailedException : The command "composer require backpack/generators --dev" failed.
Exit Code: 2(Misuse of shell builtins)
I tried to delete the cache, to add timeout 600 and I do not know what else to do.
There was indeed a problem with installing backpack/generators - composer did not fall back to an appropriate version, but it is now fixed. You should be able to run php artisan backpack:base:install without problems.
If you hit any roadblocks during the installation, I recommend you follow the manual installation procedure, instead of php artisan backpack:base:install.
Backpack v3.4 is a collection of packages for Laravel 5.5 / 5.6.
Right under requirement in Backpack.io it says it requires laravel 5.5 or 5.6 and PHP7.
It's not compatible with laravel 6.*

How to Uninstall Laravel?

I am facing fatal errors regarding Artisan. I think I couldn't install laravel complete due to slow internet. Now I want to remove Laravel from root and want to have fresh installation.
Can anyone help me?
if you have installed it globally you can simply remove it by composer global remove laravel/installer
If you have installed it via composer project you simply remove the directory.
Since I was looking all around how to uninstall packages and after reading tones
of documentations here's the short how-to uninstall a workbench package in Laravel
Remove package service provider from 'providers' array in app/config/app.php
Remove the package folder in workbench/
Run:
php composer.phar dump-autoload
php artisan clear-compiled
php artisan optimize
(optional) remove all related code using the package (you'll get errors about that)
or use composer global remove laravel/installer
For me, the command that actually did the trick was: composer global remove laravel/installer

Laravel Tinker Not Working After Upgrading From 5.3 To 5.4

I recently upgrade Laravel 5.3 to Laravel 5.4. I had read the upgrade guide provided by the laravel, and everything looks good. Until I try to run the Laravel Tinker and it's not working. I already followed the upgrade guide specifically for Laravel Tinker part.
Laravel Tinker
In order to continue using the tinker Artisan command, you should also
install the laravel/tinker package:
composer require laravel/tinker
Once the package has been installed, you should add
Laravel\Tinker\TinkerServiceProvider::class to the providers array in
your config/app.php configuration file.
Source: https://laravel.com/docs/5.4/upgrade
And here is my config/app.php :
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Laravel\Tinker\TinkerServiceProvider::class,
But then, when I ran the command "php artisan tinker", it says this:
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "tinker" is not defined.
Has anybody experienced this before?
Note: other artisan command works perfectly and I can see my site just fine.
Laravel Tinker
In order to continue using the tinker Artisan command, you should also install the laravel/tinker package:
composer require laravel/tinker
Once the package has been installed, you should add Laravel\Tinker\TinkerServiceProvider::class to the providers array in your config/app.php configuration file.
Source: https://laravel.com/docs/5.4/upgrade
Edit your app/Console/Kernel.php, then modify the $commands property with this:
protected $commands = [
//
\Laravel\Tinker\Console\TinkerCommand::class,
];
then in console, make a
composer dump-autoload

Resources