Here today I give you some tips about how to set up a Laravel project on local using XAMPP or WAMP server.
For Windows users, there Some steps to which you do first,
#Windows users:
-
Download XAMPP or WAMP server
XAMPP download link: https://www.apachefriends.org/download.html
WAMPP download link: http://www.wampserver.com/en/#download-wrapper -
Download Composer, for Laravel package control or download from below link
Composer download link: https://getcomposer.org/download/
When you completed the installation of the composer you can check from your windows CMD,
Write composer hit ENTER on your cmd which looks like this, -
Next, Download Git Bash from a given link for running composer,Git: https://git-scm.com/downloads
Now, #Windows, #Linux, #MacOS continue from the below steps.
-
Run the XAMPP or any server on your system, open PHPMYADMIN or database, create the database named with
homestead
type utf8_general_ci. -
Pull or download the Laravel project from Git.
-
On the Laravel project package you can see the .enc.example file which is inside your root directory.Rename
.env.example
file to..env
So, open a command prompt and write the following command mv .env.example .env. -
Open the console and cd to the root directory of your project.
-
Run
composer install
orphp composer.phar install.
Install Composer on Linux and Windows in 3 Steps
-
Run
php artisan key:generate
-
Run
php artisan migrate
-
Run
php artisan db:seed
run seeders, if any. -
Run
php artisan serve.
After completed all these things, on your browser running project look like this,
Also Check:
Laravel 5.7 CRUD application
Happy Coding…!
Pingback: Laravel 5.7 CRUD application Laravel 5.7 CRUD application phpcoder.tech
Pingback: Display Data From Database in jQuery DataTable - PHPCODER.TECH
that was useful thank you 🙂
Thanks 🙏