-3

I tried install package watson/rememberable on localhost and it's installed successfully but when tried install it on shared hosting package killed and added package name to composer.json file, but not installed source code to vendor folder. I tried install package by clearing composer & Laravel caches but package not installed. How I can install it correctly?

OMR
  • 11,736
  • 5
  • 20
  • 35
Andreas Hunter
  • 4,504
  • 11
  • 65
  • 125

2 Answers2

0

Maybe you are in production mode. In the .env file change:

    APP_ENV=local

Then try installing again.

OMR
  • 11,736
  • 5
  • 20
  • 35
Nayeem
  • 81
  • 5
0

To install the most recent version, run the following command:

composer require watson/rememberable

OR

Add to composer.json file:

"require": {
       "watson/rememberable": "^3.1",
    },

After, Run this command in the command prompt: composer update

Udhav Sarvaiya
  • 9,380
  • 13
  • 53
  • 64