
In this tutorial, i will explain how to run php artisan migrate command run without open command line.
You have to open your project which you file in your editor and create a folder name is .ebextensions and into this folder create a file name is deploy.config.
Open You file and put the below code:
container_commands:
01initdb:
command: "php artisan migrate"
So you can directly run this command every time when you upload your project into your AWS server. if you don’t want to run this command manually.
I hope this will help you!