Laravel 5.2: Artisan Key Generation for Application Key not working properly Laravel 5.2: Artisan Key Generation for Application Key not working properly laravel laravel

Laravel 5.2: Artisan Key Generation for Application Key not working properly


This is a change made recently to the key generator. See this commit for more info.

Do you get an error stating that the key is invalid?


put this in appServiceProvider.php

use Illuminate\Support\Facades\Schema;public function boot(){    Schema::defaultStringLength(191);}


I dont know if you have resolved this issue.. This is how I solved the same.

In the config/app.php, remove the env() and its parenthesis from the key.

eg. 'key' => env('your_key')

should change it to..

'key' => 'your_key'

I hope this helps you and others out there.