Skip to main content

Laravel Installation

  1. Start command prompt window or terminal and change directory to laravel.

       cd your-laravel-project
  2. Create database with name "handyman-service" in your sqlyog,laragon,xampp,wamp

    • Open and edit the /.env file and provide your server details:
        APP_URL="https://yourdomain.com"
        DB_CONNECTION="mysql"
    DB_HOST="127.0.0.1"
    DB_PORT="3306"
    DB_DATABASE="YOUR DATABASE NAME"
    DB_USERNAME="YOUR USERNAME"
    DB_PASSWORD="YOUR PASSWORD"
  3. Run below command in terminal or CMD step by step:

        php artisan config:clear
    php artisan cache:clear
    php artisan route:clear
    php artisan view:clear
    • Once you run the above commands then run this command:
        php artisan optimize
  1. Install Laravel Passport

    • Passport is required for API authentication. Install it by running:
    php artisan passport:install --force
    • During the installation process, you may be prompted with configuration options. Answer "yes" to all questions.

  2. To run project

        php artisan serve
  3. Below are the credentials for both admin and provider login. Admin admin@gmail.com 123456

        Provider
    provider@gmail.com
    123456
    TIP

After all this, you have to just hit your URL in the browser and go on.

:::