• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

How to run Laravel project on localhost

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,

How to run Laravel project on localhost

Table of Contents

#Windows users:

  1. Download XAMPP or WAMP server

    XAMPP download link:   https://www.apachefriends.org/download.html
    WAMPP download link:  http://www.wampserver.com/en/#download-wrapper

  2.  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,

  3. 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.

  1. Run the XAMPP or any server on your system, open PHPMYADMIN or database, create the database named with homestead type utf8_general_ci.

  2. Pull or download the Laravel project from Git.

  3. On the Laravel project package you can see the .enc.example file which is inside your root directory.Rename .env.example file to. .envSo, open a command prompt and write the following command mv .env.example .env.

  4. Open the console and cd to the root directory of your project.

  5. Run composer install or php composer.phar install.

     

    <iframe class="wp-embedded-content" data-secret="6G8bj3QlAU" frameborder="0" height="591" marginheight="0" marginwidth="0" sandbox="allow-scripts" scrolling="no" security="restricted" src="http://phpcoder.tech/install-composer-on-linux-and-windows-in-3-steps/embed/#?secret=6G8bj3QlAU" title="“Install Composer on Linux and Windows in 3 Steps” — PHPCODER.TECH" width="600"></iframe>

     

  6. Run php artisan key:generate

  7. Run php artisan migrate

  8. Run php artisan db:seed run seeders, if any.

  9. Run php artisan serve.

After completed all these things, on your browser running project look like this,