Setting up Laravel Environment on Windows
I am getting back at coding and trying to setup the environment for the laravel based framework to make sites and the apps for making simple use case based programs. However this would require some level of setup to work with the Laravel code.
Few things you would be needing are as follows:
- Xampp
- Composer
- Windows Powershell
That's all you need for setting up the laravel environment on Windows. Because we are setting up the php and few other setup with the variables required for the laravel. So I wish to show you the simple setup with the laravel setup.
XAMPP
It's one of the simple option for you to setup the php, mysql, apache server and postgres or mariadb as the database. They used to have the mysql as default but now you have the option between the mariadb, mysql and there is also one of the fork with the postgresql too.
You can download the xampp installer for windows here. Setup is pretty easy and if you are into development you won't need much of handholding there. However make sure to choose D: drive as there would be some permissions for which you won't be needing much of the handholding there.
Composer
I have set up composer immediately after this. There are two ways you can do this. First being you can use the powershell command and another is the windows installer. I feel the windows installer method is a good option. I would say for those who would need simplicity can use the installer. But the powershell is kind of method which would be easier if you get used to the command line.
Composer once installed you should run the following command.
composer and then use the --version as the command to check the version. You can confirm the code there. It would be interesting to get the output here to confirm because once you are done with this step you are good to go ahead.
Setting up Laravel
I would say on that note it's worth trying the composer. Next step probably would be setting up the laravel. And that would require running the commands. Below are some of the commands you should try.
First thing is getting the project setup directory and then running the command. Check the first command for the sample app.
composer create-project laravel/laravel sample-app
Next thing is to get into the directory for that command would be this.
cd sample-app
Next command would be to run the development server.
php artisan serve
Now we can run the command and then get the server running. This would be something you should see as the welcome screen of the laravel. It's a good setup welcome message telling you about the Laravel being installed.
Posted Using InLeo Alpha
The Learn to Code recently launched the BYTE token. You might consider adding the #BYTE tag to posts about coding.
!WINE
Posted using STEMGeeks
Thank you for your witness vote!
Have a !BEER on me!
To Opt-Out of my witness beer program just comment STOP below
View or trade
BEER
.Hey @irivers, here is a little bit of
BEER
from @isnochys for you. Enjoy it!Learn how to earn FREE BEER each day by staking your
BEER
.Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!
Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).
You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.