laravel No supported encrypter found. The cipher and / or key length are invalid
2017-04-04 22:15
525 查看
laravel 访问时出错
![](https://img-blog.csdn.net/20170404204448168?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd2FuZ3hpbnhpbnNq/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
进入项目目录 ,输入命令
生成配置文件
提示
![](https://img-blog.csdn.net/20170404205504272?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd2FuZ3hpbnhpbnNq/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
提示没有.env文件
进入项目目录
复制.env.example为.env
再次执行
再次访问对应的路由,正常访问了
No supported encrypter found. The cipher and / or key length are invalid
进入项目目录 ,输入命令
生成配置文件
php artisan key:generate
提示
[ErrorException] file_get_contents(/Users/wxx/PhpstormProjects/xxlaravel/.env): failed to op en stream: No such file or directory
提示没有.env文件
进入项目目录
复制.env.example为.env
再次执行
php artisan key:generate
wxx$ php artisan key:generate Application key [base64:IMm8gHhzpIZA4QwikpUVvjg0fMgPZOgoswgvxZY4IvE=] set successfully.
再次访问对应的路由,正常访问了
相关文章推荐
- laravel No supported encrypter found. The cipher and / or key length are invalid.
- Laravel No supported encrypter found. The cipher and / or key length are invalid
- 部署laravel报错:No supported encrypter found. The cipher and / or key length are invalid.
- No supported encrypter found. The cipher and / or key length are invalid.
- No supported encrypter found. The cipher and / or key length are invalid.
- 使用lavarel5.1碰到No supported encrypter found. The cipher and / or key length are invalid.
- No supported encrypter found. The cipher and / or key length are invalid.
- No supported encrypter found. The cipher and / or key length are invalid.
- laravel The cipher and / or key length are invalid
- 关于laravel中key的错误cipher and / or key length are invalid
- Laravel 出现"RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."问题的解决办法
- ERROR ITMS-90032:“Invalid Image Path - No image found at the path referenced under key 'CFBundleIcon
- laravel No supported encrypter found
- ERROR ITMS-9000: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcon
- The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
- The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
- No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
- iOS ERROR ITMS-90032 : "Invalid Image Path - No image found at the path referenced under key
- The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
- tomcat添加项目(Add and Remove...)出现There are no resources that can be added or removed from the server