moving Laravel project between computers

后端 未结 5 565
孤城傲影
孤城傲影 2020-12-07 23:23

I have been working on a laravel5 project on a computer , but now I want to continue on an other, but don\'t know how :(

I\'m using wampserver and the project is in

5条回答
  •  广开言路
    2020-12-07 23:57

    Copy the project folder and navigate terminal/cmd just run following commands.

    Create database and place the same name at .env file in laravel project folder

    1. composer install
    2. php artisan key:generate  
    3. php artisan cache:clear
    4. php artisan migrate
    

    UPDATE: If you're getting

    Whoops, looks like something went wrong

    in app/config/app.php, set debugging as true with:

    'debug' => env('APP_DEBUG', true)' 
    

    If you're getting the error

    No supported encrypter found. The cipher and/or key length are invalid

    for some people it worked to do cp .env.example .env before (2).

提交回复
热议问题