Laravel Key Generate Not Working

Laravel key generate not working windows 10

  1. Laravel App Key
  2. Laravel Key Too Long

The most concise screencasts for the working developer, updated daily. There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!

Feb 20, 2015 Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. How to generate.env file for laravel? The questions asks how to generate not. Don't forget to When you use the php artisan key:generate it will generate the.

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign up New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Laravel random number

Already on GitHub? Sign in to your account

Key

Comments

commented Oct 26, 2017

  • Laravel Version: 5.5.*
  • PHP Version: 7.1.9
  • Database Driver & Version: MySQL 5.7

Description:

I'm using the GIT version control for my Laravel project. The problem is when I clone the repository, run the composer install, create the .env and run php artisan key: generate the following error is displayed:

[RuntimeException]
No application encryption key has been specified.

Steps To Reproduce:

  • composer create-project --prefer-dist laravel/laravel MyProject
  • Configure app.php, .env, etc..
  • Develop
  • Control Git

Now simulating another programmer on my team, he would do the clone and execute the commands:

  • git clone
  • copy env.example to .env
  • composer install
  • php artisan key:generate => ERROR !!

commented Oct 26, 2017

It has a detail, if I put any other key manually in the .env (such as base64: JYY8rk4 + k1tXELhyZ68BfpuVfoBhrHdXf5vPxyS7zAM =) and run php artisan key: generate, it works. If it does not work, it will not work.

commented Oct 27, 2017

I found someone with the same problem as mine (Link). In my case I am encrypting the session. I did the test by setting it to false, the command did not work. I did the test by commenting on my Macros code, it worked perfectly.
What to do ?

commented Oct 27, 2017

Laravel App Key

I was able to solve the problem. There should be some BUG when using Form::macro() in a Middleware. I did some more research and discovered that there is also the Html::macro(). By swapping these tags in the macros I created, the problem in generating the key is gone.

So I conclude then that my problem is solved and open to you who may be going through it.

closed this Oct 27, 2017
This issue was closed.

Laravel Key Too Long

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment