PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, January 24, 2022

[FIXED] How to downgrade Laravel version 5.8 to 5.1 in Ubuntu server?

 January 24, 2022     laravel, laravel-5, laravel-5.8     No comments   

Issue

"name": "laravel/laravel",
 "description": "The Laravel Framework.",
 "keywords": [
     "framework",
     "laravel"
 ],
 "license": "MIT",
 "type": "project",
 "require": {
     "php": ">=5.5.9",
     "laravel/framework": "^5.8.0",

Solution

Simply update the composer.json so that it looks like this "require":"{..., "laravel/framework":"5.1.*" then run composer update.
You may want to downgrade some other dependencies too, if the command fails (it will show you where the problem is, though).

Note: It is NOT recommended to run composer update on production server. You may want to do it on your local machine, and after pushing the code to production, run composer install there.



Answered By - Qumber
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing