https://github.com/yasu-s/lighthouse-php-sample
https://github.com/yasu-s/lighthouse-php-sample
laravel lighthouse-php php
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yasu-s/lighthouse-php-sample
- Owner: yasu-s
- Created: 2024-06-04T02:24:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T10:30:13.000Z (about 2 years ago)
- Last Synced: 2025-04-04T05:41:51.882Z (about 1 year ago)
- Topics: laravel, lighthouse-php, php
- Language: PHP
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lighthouse-php-sample
## 概要
- LighthousePHPのサンプル
## 環境
- Docker
## コマンド
### 初回
```bash
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php83-composer:latest \
composer install --ignore-platform-reqs
```
```bash
cp .env.example .env
```
### 起動
```bash
./vendor/bin/sail up -d
./vendor/bin/sail artisan migrate
./vendor/bin/sail artisan db:seed --class=DatabaseSeeder
```
### エイリアス登録
```bash
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
```
## 挙動確認
- http://localhost/graphiql
## 参考URL
- https://laravel.com/docs/master/sail
- https://lighthouse-php.com/