I have tried to update the Laravel version to 8.0 from 7.4. While giving "composer update" I'm facing the following error.
And my PHP version is 7.4.
You need version 1.0.1 or higher of jwtauth as you can see on https://packagist.org/packages/tymon/jwt-auth#1.0.1 to have it support version 8 of Laravel.
Change your version requirement in composer.json to ^1.0.1.
Related
composer create-project --prefer-dist laravel/laravel:^7.0 blog using this command and I got error this
[InvalidArgumentException] Could not find package laravel/laravel
with version 7.0 in a version installable using your PHP version, PHP
exte nsions and Composer version.
Your PHP Version is not compatible with your Laravel version, If you are using XAMPP or other web servers, try to use the older version that is compatible with your Laravel-7 project file, and after that reinstall your Laravel-7 project.
Your PHP version is not compatible with Laravel version 7.0
Laravel 7 Docs
Laravel 7 requires PHP >= 7.2.5. Check your php version using php -v on terminal.
You can uninstall composer then again install it.
I have changed php version to 7.1.3 and also Laravel version in composer.json file. Then simply use composer update but nothing happens. I need help.
PHP 7.1 will no longer be actively maintained as of December 2019. Therefore, Laravel 6.0 requires PHP 7.2 or greater.just follow the documentation https://laravel.com/docs/6.x/upgrade
I am trying to install "spatie/laravel-activitylog" in Laravel install using command composer require spatie/laravel-activitylog
But I am getting the error that says
Don't install Laravel 5.3
But I don't want to update the Laravel version.
I think If I try to install an older version of "spatie/laravel-activitylog". It won't have any compatibility issues with Laravel 5.3.
But I don't know which older version of this package will be best for Laravel 5.3.
The latest version requires Laravel 5.5. That is why you get the error. To use spatie/laravel-activitylog you need to upgrade Laravel or download an earlier version.
If you look at the requirements for version 1 here: https://docs.spatie.be/laravel-activitylog/v1/requirements you find that:
The activitylog package requires PHP 7.0+ and Laravel 5.2 or higher.
This is sufficient with your need so you can install this version by specifying it like this:
composer require spatie/laravel-activitylog "^1.0"
I am having some problem running Laravel 4 project on my environment.
My development environment:
MacOS High Sierra
Laravel 5.6
PHP 7.1.14
Homebrew 1.6.4
XAMPP 7.1.16
Composer version 1.6.2
When I try to do
php artisan serve
It shows me error message:
Mcrypt PHP extension required.
I checked that Mcrypt is already deprecated by the community, and I saw a lot of solution for install Mcrypt on php 7.1, but it all doesn't work out for me. I am thinking about just upgrade entire project laravel 4 to laravel 5.6 manually. Do you guys have any recommendation for case, either the manually upgrade or solve the dependency problem?
I'd like to use Laravel 5.4 on my production server but the latest PHP 5.6 version available is 5.6.30 (as my local XAMPP installation as well), while the requirements for Laravel 5.4 are php >= 5.6.40 as for https://packagist.org/packages/laravel/laravel
Now, I've successfully installed Laravel 5.4 on the server in a subdirectory via SSH and the home page is showing the Laravel logo. Is there some problems I could encounter using this version of PHP down the road? If so, is there any polyfill or adjustment to be made in order to use Laravel 5.4 on PHP 5.6.30 instead of PHP 5.6.40? Thanks
Laravel require php 5.6.4 as you can see here
and XAMPP is 5.6.30 - This version is NEWER than 5.6.4 ( see all php versions here )
So no problems are expected becase you are using newer version than required by Laravel.
composer create-project --prefer-dist laravel/laravel (project name) 5.4.*
that will install the latest version of laravel supported by php 5.6
see in the attachment above
composer create-project --prefer-dist laravel/laravel (project name) 5.4.*
Laravel 5.4 is compatible with PHP 7.x. Please check the following article.
https://murze.be/2016/01/why-we-are-requiring-php-7-for-our-new-packages/