Configuration Commands For .env file
We have introduced a new Pickbazar command line interface (CLI) for better installation experience. .env
file is a very important for any Laravel application. By using the new Pickbazar CLI users can easily add/modify the .env variables.
If you want to configuration your .env
file by the command line then you can continue.
If you use docker then you need to use
sail
instead ofphp
.
Command | Description |
---|---|
php artisan marvel:help | About application and all command information. |
php artisan marvel:install | Installing Marvel Dependencies. |
php artisan marvel:create-admin | Create an Admin. |
php artisan marvel:seed | Run first php artisan migrate:fresh then run this command php artisan marvel:seed for import Demo Data. Read this doc carefully https://laravel.com/docs/10.x/migrations#drop-all-tables-migrate |
php artisan marvel:settings-seed | Import Settings Demo Data. |
php artisan marvel:env-setup | Setup necessary config in .env file. |
php artisan marvel:aws-setup | Add or Update the AWS configuration in .env file. |
php artisan marvel:database-setup | This command will allowed to only mysql database setup. If you need any other database config then you can try manual process. |
php artisan marvel:default-language-setup | Change default language. |
php artisan marvel:frontend-setup | shop and dashboard URL update command. |
php artisan marvel:mailchimp-newsletter | For Newsletter Configuration Update. |
php artisan marvel:mail-setup | Gmail, Mailtrap, Mailgun ENV configuration command. |
php artisan marvel:open-ai-setup | Open AI Secret Key configuration command. |
php artisan marvel:otp-gateway-setup | OTP SMS gateway setup in ENV file. |
php artisan marvel:queue-setup | Change queue connection configuration. |
php artisan marvel:test-mail-send | Send an email to check the validity of credentials. |
php artisan marvel:translation-enable | Enable or Disable translation in the ENV file. |
You can setup necessary configuration by this one command. It will give some quick access key which you want to config. Run this command and choose a option and follow the instruction.
Note: You can specify the command you wish to config using below option after this command for direct configuration.
php artisan marvel:env-setup {quick access key}
Quick Access Key | Description |
---|---|
mail | Mail server setup (mailtrap, mailgun, gmail) |
database | This command will allowed to only mysql database setup. If you need any other database config then you can try manual process. |
newsletter | Mailchimp newsletter setup in .env file. |
frontend-connection | Frontend URL setup (admin & shop). |
aws | AWS (bucket) setup. |
default-language | Setup default language in .env file. |
open-ai | Setup OpenAI in .env file. |
otp | OTP SMS gateway (Twilio or MessageBird) setup in .env file. |
queue-connection | Setup queue connection in .env file. (e.g. database or sync). |
translation-enable | Enable translation settings in .env file (true/false). |
test-mail | Send an email for credentials check. |
Most uses Laravel commands.
Quick Access Key | Description |
---|---|
php artisan serve | To start project. |
php artisan config:cache | change environmental variables. |
php artisan key:generate | Generate new application key. |
php artisan migrate | If you want to migrate the database tables. |
php artisan storage:link | Create a symbolic link in Laravel application. |
composer require Vendor_name/Package_name | Install New packages in Laravel application. |
composer update | Update all your packages or specific package. |
Event run.
Note : Please either run php artisan queue:listen
or php artisan queue:work
. Because many feature has dependency on Laravel event/listener feature. If not then set QUEUE_CONNECTION=sync
in .env
files for completing the full functionality run.