Skip to content
Apal Shah edited this page Apr 25, 2017 · 3 revisions

Installing This App

Prerequisites : Composer https://getcomposer.org/

  1. Create a new folder named "blog"
  2. Copy all the files in this folder.
  3. Open .env file and enter your database credentials. Create a database named "laravel" which is default in this .env file
  4. Open terminal/cmd and go to this folder.
  5. Run following Commands
    5.1 composer install
    5.2 php artisan key:generate
    5.3 php artisan cache:clear
    5.4 php artisan migrate
    5.5 php artisan serve

Running on localhost

  1. If you are running this on localhost then by default you can open this app by typing localhost:8000 after executing php artisan serve
  2. To change port number just run the server with php artisan serve --port 8765 and simply go to localhost:8765
  3. 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.

Running on live website

  1. If your domain name is example.com then by default you can access this app by example.com/public
  2. 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>

Log into Dashboard/Admin Panel

  1. First you have to Register an account. For that just go to localhost:8000/register or example.com/register and create an account.
  2. To log in, go to localhost:8000/login or example.com/login