How to run on local using php astrin
- composer install
- Run git clone
- php artisan serve
How to set up on your local machine using XAMPP
-
Run git clone
-
Open up the following file in notepad(++): D:\xampp\apache\conf\extra\httpd-vhosts.conf
-
Add the following lines to this file:
<VirtualHost *:80> ServerAdmin info@example.com DocumentRoot "D:\xampp\htdocs\laravel-admin" ServerName example.com ServerAlias www.example.com <Directory "D:\xampp\htdocs\laravel-admin"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> </VirtualHost> -
Open Notepad in Administrator mode
-
With Notepad, open up the following file: C:\Windows\System32\drivers\etc\hosts
-
Add the following line:
127.0.0.1 example.com -
Start XAMPP and you should be able to connect with the local
-
Run example.com on browser
It important to push your code EVERY day to github.
Username: admin@laravel.com Password: Admin@123