I was working with laravel (5.4), everything fine. I cannot remember modifying my .env file but the following error came up in every page:
(1/1) RuntimeException
The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
I tried every possible answer found on github.
This we're the steps i made:
cp .env.example .env
php artisan key:generate
Application key [...] set successfully.
php artisan config:clear
Configuration cache cleared!
php artisan config:cache
Configuration cache cleared!
Configuration cached successfully!
php artisan cache:clear
Cache cleared successfully.
Also trying config:cache and then config:clear.
No results, error persists.
did you try to put
'cipher' => 'AES-256-CBC',
in your config/app.php ?
Related
I have a Laravel 8 project which is using Laravel/UI for auth.
I changed the APP_URL in the .env file from the test domain extension to IP Address. But the password reset email is showing a link with the previous APP_URL as the base URL.
The following are steps that I have tried to solve this:
Change APP_URL in .env file
Change URL in config/app.php to the IP address instead of env variable.
Ran php artisan config:clear
Ran php artisan cache:clear
Ran php artisan optimize:clear
How can I solve this?
Try running these commands:
php artisan config:cache
php artisan queue:restart
The issue was with url from where I was submitting the form. Laravel/UI reset password uses route() method to get the url for the password reset. Hence why the change in APP_URL and url variable didn't affect the link. A detailed explanation is available here
am trying to set up a web sockets server using laravel 5.7 and keep getting this error
Argument 2 passed to
BeyondCode\LaravelWebSockets\Apps\App::__construct() must be of the
type string, null given, called in
/opt/lampp/htdocs/api.cs/vendor/beyondcode/laravel-websockets/src/Apps/ConfigAppProvider.php
on line 63 screenshot missing
....i don't know what to do please help. I'm actually using this guide https://docs.beyondco.de/laravel-websockets/1.0/
Try clearing your cache:
Run
php artisan config:cache
Or
php artisan optimize:clear
After running migration use the following sequence of commands:
php artisan cache:clear
php artisan config:clear
php artisan config:cache
I have a website based on laravel 5.4. The site is working fine on my localhost. But when I upload it on my shared hosting. It is giving me an error
"at FileViewFinder->findInPaths('welcome', array('C:\\xampp\\htdocs\\lrl\\resources\\views'))"
C:\xampp\htdocs\lrl\resources\views this is my localhost URL. How can I changed this URl. I have made changes in .env file and I put all the files of public folder at root directory. Also I changed Appserviceprovider.php file.
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Schema;
use DB;
use View;
use Request;
I also cleared the cache but still i am getting this error shown in screenshot
run php artisan config:cache
C:\xampp\htdocs\lrl\resources\views is cached in your config file. So, you must clear config cache by run artisan command php artisan config:cache.
Clear you route cache
php artisan route:cache
Clear all if still not work
php artisan config:cache
php artisan config:clear
php artisan view:clear
I found the problem
if i restart php artisan serve the changed values are applied. this is
the norm? how can i solve this
I created a router where I output config information
I'm trying to change value from .env file, for example APP_NAME, from APP_NAME="Nuxt + Laravel" to APP_NAME="test" but the change is not displayed on the page!(of course I reloaded the page 😊)
I was trying to look through php artisan tinker
It works!
But my config remains the same. I can not solve this problem for a week now.
I cleared the cache!!! I tried php artisan cache:clear, php artisan config:clear (i tried all command for cache)
CACHE_DRIVER=file
I deleted files bootsprap/cache/*, storage/framework/cache/*.
I tried everything!!!
I have this project on the github: https://github.com/iliyaZelenko/laravel-nuxt.
Please help me, I want my project to be used by other people.
I seem to be having a problem with artisan reading the default config/database.php file.
When I run for php artisan migrate:status - or any other migration related commands I get
exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access
denied for user 'homestead'#'localhost' (using password: YES)'
even though the default database connection name is set to sqlite, which doesn't require credentials of any kind.
My .env has APP_ENV=local and I'm running it under the local environment with PHP 5.6.2 using Mamp.
After calling php artisan I've noticed there is a command to clear the configuration cache file php artisan config:clear - then run php artisan config:cache to cache it with the applied changes - which solved the problem.