You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to clear the config:cache after add or update .env variable. Add below code in add and update function of EnvController located at Brotzka\DotenvEditor\Http\Controllers location:
include Facades config use Illuminate\Support\Facades\Config;
public function add(Request $request)
{
$this->env->addData(
[
$request->key => $request->value,
]
); Config::set($request->key, $request->value); // update config params need to add this code
return response()->json([]);
}
I follow the little guide on the README file
and tried to get the value by the method provided with the library
and by the default method.
but its not bringing the new value, instead it only recognizes the value if I restart the localhost server.
Any clue with this
The text was updated successfully, but these errors were encountered: