-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Apal Shah edited this page Apr 25, 2017
·
3 revisions
Prerequisites : Composer https://getcomposer.org/
- Create a new folder named "blog"
- Copy all the files in this folder.
- Open .env file and enter your database credentials. Create a database named "laravel" which is default in this .env file
- Open terminal/cmd and go to this folder.
- Run following Commands
5.1composer install
5.2php artisan key:generate
5.3php artisan cache:clear
5.4php artisan migrate
5.5php artisan serve
- If you are running this on localhost then by default you can open this app by typing
localhost:8000
after executingphp artisan serve
- To change port number just run the server with
php artisan serve --port 8765
and simply go tolocalhost:8765
- To change host name, to access this web app on LAN but on other PC then run the server with
php artisan serve --host 192.168.0.105
. Put your IP address in that.
- If your domain name is example.com then by default you can access this app by
example.com/public
- To open this web app by going to example.com add this code to your .htaccess file in your root directory.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
- First you have to Register an account. For that just go to
localhost:8000/register
orexample.com/register
and create an account. - To log in, go to
localhost:8000/login
orexample.com/login