Laravel Installation
-
Start command prompt window or terminal and change directory to laravel.
cd your-laravel-project -
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" -
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
-
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.
-
To run project
php artisan serve -
Below are the credentials for both admin and provider login.
Admin admin@gmail.com 123456Provider
provider@gmail.com
123456TIP
After all this, you have to just hit your URL in the browser and go on.
:::