- Install dependencies:
composer install
- Create a new
.env
file from.env.example
:cp .env.example .env
- Change the database credentials with you own in
.env
file - Run migrations with seeds
php artisan migrate:fresh --seed
- Launch the website
php artisan serve
- Update your hosts file (
C:\Windows\System32\drivers\etc\hosts
) to translate the domains/sub-domains to localhost, example:127.0.0.1 n7geeks.ensetm.club ::1 n7geeks.ensetm.club 127.0.0.1 admin.ensetm.club ::1 admin.ensetm.club 127.0.0.1 ensetm.club ::1 ensetm.club
- Add virtual hosts for each sub-domain, virtual hosts file is located in
%APACHE_HOME%\conf\extra\httpd-vhosts.conf
.%APACHE_HOME%
is where your Apache server is located. For WAMP users,%APACHE_HOME%
may refer to this location:C:\wamp64\bin\apache\apache<version>
- Example (change
c:/wamp64/www/n7geeks/enset.club
to match the path of your local repository):<VirtualHost *:80> ServerName admin.ensetm.club DocumentRoot "c:/wamp64/www/n7geeks/enset.club/public" <Directory "c:/wamp64/www/n7geeks/enset.club/public/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName n7geeks.ensetm.club DocumentRoot "c:/wamp64/www/n7geeks/enset.club/public" <Directory "c:/wamp64/www/n7geeks/enset.club/public/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> <VirtualHost *:80> ServerName ensetm.club DocumentRoot "c:/wamp64/www/n7geeks/enset.club/public" <Directory "c:/wamp64/www/n7geeks/enset.club/public/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost>
- Example (change
NB: If you don't see the configuration for your case, please consider adding it here when you find the solution.
- Fork this repository
- Create a new branch. ex:
Feature/YourNewFeature
orFix/TheIssueName
- Code ๐ป
- Create a PR to the master branch
- Welcome in ๐
Don't forget to put a โญ It means a lot to us, Thanks!