So let's get started....
First thing first........... Create a new laravel project by using composer command :
After finishing this command, we will get a fresh laravel project like this :
Next, let's set up our database. Btw I'm using xampp in windows 7 here. So just open your phpmyadmin and create new database :
Next... Let's connect this DB to our laravel project. So in Laravel, open the .env file and change it's database config...
Oukaaay... Let's try to run our laravel using "php artisan serve"
Then open localhost:8000 {default laravel port}, we will got a default laravel view as shown below :
If we want to run laravel on another port. We can use this command :
php artisan serve --port="your desired port" {make sure the port is not being used by another app}
So... That's all for environment setup... See yaa in the part... :D
Go to part II ... Generating Migration File....
No comments:
Post a Comment