Search code examples
phpmysqllaravel-5.5laravel-authorization

how can i upload laravel 5.5 project to free host?


I have made project with laravel 5.5 and when upload it to my website (free host)

I have this error

Whoops, looks like something went wrong.

(1/1) RuntimeException The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths

I edited theses files

.env
index.php
config/app.php
config/database.php

and before i upload it i run this command

php artisan key:generate

after all of this still not working

any help plz ?


Solution

  • problem solved with the following steps:-

    edit config/app.php

    change

    'key' => env('APP_KEY'),
    

    to
    'key' => env('APP_KEY','mykey'),

    mykey = key in .env file