This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I'm trying to setup an october project by using composer and dotenv configuration. I've installed by running the composer command that I found in the documentation.
composer create-project october/october myoctober dev-master
Until there everything is working and my site is running but then I wanted to start using DotEnv for my configuration so I can easily deploy it later and found a way to do that in the documentation by running the following command:
php artisan october:env
But that command doesn't seem to exist because I get the following error:
[InvalidArgumentException]
Command "october:env" is not defined.
Did you mean one of these?
october:up
october:down
october:update
october:util
october:mirror
october:fresh
october:install
You can just create one yourself. Here is the default env provided with laravel: https://github.com/laravel/laravel/blob/master/.env.example
Create the file .env in the root of your website, then add the variables you need to it. Then, in your config files, replace the values with
env('keyword')
1-3 of 3