https://github.com/fxcjahid/laravel-graphql-example
Laravel simple graphql example
https://github.com/fxcjahid/laravel-graphql-example
grahpql laravel lighthouse
Last synced: 2 months ago
JSON representation
Laravel simple graphql example
- Host: GitHub
- URL: https://github.com/fxcjahid/laravel-graphql-example
- Owner: fxcjahid
- Created: 2023-07-22T08:02:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-25T16:00:27.000Z (about 2 years ago)
- Last Synced: 2025-02-01T02:19:10.746Z (8 months ago)
- Topics: grahpql, laravel, lighthouse
- Language: PHP
- Homepage:
- Size: 153 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

## Setup Requirements
- Composer
- PHP ^8.1
- Git Bash
- Xampp
- vscodejust, Follow few steps to complete the Laravel GraphQL Example
## Step 1
Run the git clone
` git clone https://github.com/fxcjahid/laravel-graphql-example.git `
## Step 2
after downloading the project file. Open the project file with vscode and run the terminal from topbar
`composer install`
### Step 3
after completing the project's required package. You need to connect your database.
Please run xampp and go to `phpmyadmin` and create a database.then, rename `.env.example` to `.env` You have necessary to remove the `.example` word
and, now open .env file and paste your database name inside
`DB_DATABASE=Your Database Name`*TIPS: if you have a password then paste also password*
## Step 4
After completing that. Run the database migration
`php artisan migrate`
then, run also database seed
`php artisan db:seed`
## Last step
This time ready to run Laravel graphQL
`php artisan serve`
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).