Laravel - Installing packages for older version - laravel

I am trying to install a package (https://github.com/ollieread/multiauth), and the site says that i requires Laravel 4.1. I am running Laravel 4.2, and so when I run composer update I get
Your requirements could not be resolved to an installable set of packages.
Why can't I install this on a higher version of Laravel?

You can't install it on higher version of Laravel is because it's been just only support for 4. 1. * of Laravel Version according to their composer.json

Related

laravel installing older package version

I'm trying to install this package https://packagist.org/packages/ultraware/roles for laravel 5.3.
simply applying composer require ultraware/roles doesn't work as it is not compatible with laravel 5.3 and i guess I should install an older version of the package. How can i do it. When i try to run
composer require ultraware/roles^1.7.* I get:
Could not find a matching version of package
How can i install version 1.7 of this package?
Not sure why you'd want version 1.7 of this package to be installed, looks like 5.3.1 is a version compatible with Laravel 5.3.
Note:
This package is abandoned and no longer maintained.
If you still want to install a specific version of this package use the following:
composer require ultraware/roles "5.3.1"

Laravel Horizon install fail in my local machine

I have install laravel Laravel Framework 6.7.0 in local machine. I have working redis queue and jobs. but i have install horizon using this link https://laravel.com/docs/6.x/horizon. but i have not install .
I have atteched sceenshort below Please check.
As the output Using version ^4.2 for laravel/horizon states composer tries to install version 4 of laravel/horizon - which is Laravel7 only. You need to install version 3, which is compatible with Laravel6:
composer require laravel/horizon ^3.0

Laravel installer not installing latest version

I have attempted installing Laravel 5.7 with the Laravel installed and composer create-project but both install 5.6.34
I have specified the 5.7.0 and dev-develop branch in my composer command. When I specify 5.7.0 I get the following exception:
Could not find package laravel/laravel with version 5.7.*
When I specify dev-develop it installs 5.6.34 - I assume 5.7 has been released as it is available on the Laravel website with upgrade instructions.
Anyone know what's happening here?
Laravel 5.7 is not officially released yet, but you can get the latest commit from github master branch like this:
composer create-project laravel/laravel:dev-master myproject --dev

How to configure the Composer to always download the latest version?

My composer is downloading version 5.4.36. How to configure the Composer to always download the latest version.
Laravel 5.4 is the latest version with PHP 5.6 support.
Laravel 5.5 requires PHP 7.0, Laravel 5.6 requires PHP 7.1.

spatie/laravel-newsletter doesn't work on laravel 5.4

Here is the image below
See the image of composer command
Because the latest version is to be used on 5.5.
You can pull an older version if you want:
composer require spatie/laravel-newsletter 3.7.0

Resources