Skip to content

Commit

Permalink
Update v0.2.0 (#87)
Browse files Browse the repository at this point in the history
* Initial laravel 10&php 8.2

* Default packages&config (#9)

* Update .gitignore

* Update .env.example

* Update .env.example

* Install packages

Add scripts, Install packages
- doctrine/dbal
- laravel/socialite (apple, kakao)
- league/flysystem-aws-s3-v3
- predis/predis
- beyondcode/laravel-query-detector
- psalm/plugin-laravel
- zircote/swagger-php

* Install socialite

update socialite&app config

* Create github action(pint)&pr template

* Update cors.php

* Update databases

user migration&factory

* Deploy AWS ECR&EB (#10)

* Install sail

php artisan sail:install

* Add Docker related files

* Add github workflow, deploy ecr&eb

* Update composer.lock

* Add Social login&Board (#11)

* Create aws healthcheck

* Create User models (socialite)

* Create Post model

- user relationship
- viewable scope

* Create social login (apple, kakao)

* Create Auth user resource

* Create Post controller&resources

* Upgrade php 8.3

* Upgrade php 8.3

* Update README.md

* GitHub Actions 추가 (#12)

* Add laravel-maker

* Update composer.json

* Create issue_template

- https://github.com/spatie/package-skeleton-laravel/tree/main/.github/ISSUE_TEMPLATE

* Create github workflows

* Update github workflows (deploy)

* 로그인 기능 추가 (#22)

* Create accounts, signup

* Create accounts, signin

* Update accounts, signin

Checked hash instead Auth facade

* Rename post resources

* Rename Auth user

* Update pint.yml

* Update README.md

* Update php@8.3

* Update run-tests.yml

* Bump ramsey/composer-install from 2 to 3 (#39)

Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 2 to 3.
- [Release notes](https://github.com/ramsey/composer-install/releases)
- [Commits](ramsey/composer-install@v2...v3)

---
updated-dependencies:
- dependency-name: ramsey/composer-install
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump phpunit/phpunit from 10.5.7 to 10.5.11 (#37)

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 10.5.7 to 10.5.11.
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/10.5.11/ChangeLog-10.5.md)
- [Commits](sebastianbergmann/phpunit@10.5.7...10.5.11)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump laravel/pint from 1.13.8 to 1.14.0 (#36)

Bumps [laravel/pint](https://github.com/laravel/pint) from 1.13.8 to 1.14.0.
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](laravel/pint@v1.13.8...v1.14.0)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump einaregilsson/beanstalk-deploy from 14 to 22 (#30)

Bumps [einaregilsson/beanstalk-deploy](https://github.com/einaregilsson/beanstalk-deploy) from 14 to 22.
- [Release notes](https://github.com/einaregilsson/beanstalk-deploy/releases)
- [Commits](einaregilsson/beanstalk-deploy@v14...v22)

---
updated-dependencies:
- dependency-name: einaregilsson/beanstalk-deploy
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump actions/checkout from 3 to 4 (#16)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump aws-actions/configure-aws-credentials from 1 to 4 (#15)

Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 1 to 4.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](aws-actions/configure-aws-credentials@v1...v4)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump aws-actions/amazon-ecr-login from 1 to 2 (#14)

Bumps [aws-actions/amazon-ecr-login](https://github.com/aws-actions/amazon-ecr-login) from 1 to 2.
- [Release notes](https://github.com/aws-actions/amazon-ecr-login/releases)
- [Changelog](https://github.com/aws-actions/amazon-ecr-login/blob/main/CHANGELOG.md)
- [Commits](aws-actions/amazon-ecr-login@v1...v2)

---
updated-dependencies:
- dependency-name: aws-actions/amazon-ecr-login
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Update README.md

* Update README.md

* 로그인 관련 기능 수정 (#43)

* Update .env.example

* Update Account resource's namespace

* Update user name, not unique

* Update run-tests.yml

* Fix code format

* Fix routes, post controller

* 팩토리&시드 추가 (#48)

* Fix styling

* Update Post model

* Create API Healthcheck

* Update UserFactory

* Update UserSeeder

* Fix UserSeeders

* Fix typo

* Create PostFactory

* Create PostSeeder

* 게시판 오류 수정  (#49)

* Update IndexResource collection

* Update ShowResource

* Update Post Model

* Bump psalm/plugin-laravel from 2.8.0 to 2.10.1

Bumps [psalm/plugin-laravel](https://github.com/psalm/psalm-plugin-laravel) from 2.8.0 to 2.10.1.
- [Release notes](https://github.com/psalm/psalm-plugin-laravel/releases)
- [Commits](psalm/psalm-plugin-laravel@v2.8.0...v2.10.1)

---
updated-dependencies:
- dependency-name: psalm/plugin-laravel
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump mockery/mockery from 1.6.7 to 1.6.9

Bumps [mockery/mockery](https://github.com/mockery/mockery) from 1.6.7 to 1.6.9.
- [Release notes](https://github.com/mockery/mockery/releases)
- [Changelog](https://github.com/mockery/mockery/blob/1.6.x/CHANGELOG.md)
- [Commits](mockery/mockery@1.6.7...1.6.9)

---
updated-dependencies:
- dependency-name: mockery/mockery
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update run-tests.yml

* Bump league/flysystem-aws-s3-v3 from 3.24.0 to 3.25.1

Bumps [league/flysystem-aws-s3-v3](https://github.com/thephpleague/flysystem-aws-s3-v3) from 3.24.0 to 3.25.1.
- [Commits](thephpleague/flysystem-aws-s3-v3@3.24.0...3.25.1)

---
updated-dependencies:
- dependency-name: league/flysystem-aws-s3-v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump mockery/mockery from 1.6.9 to 1.6.11

Bumps [mockery/mockery](https://github.com/mockery/mockery) from 1.6.9 to 1.6.11.
- [Release notes](https://github.com/mockery/mockery/releases)
- [Changelog](https://github.com/mockery/mockery/blob/1.6.x/CHANGELOG.md)
- [Commits](mockery/mockery@1.6.9...1.6.11)

---
updated-dependencies:
- dependency-name: mockery/mockery
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* 게시판 수정 사항 (#56)

* Update Resources, created_at

* Create Post edit

* Create PostPolicy

* Fix PostEditResource

* Create lang (localization)

* Update post response message

* Create ko language

* Fix post edit routes

* Update Post factory, user

* Publish laravel-errors

* Create custom error

* Update redirectTo

* Fix post model, fillable

* Fix styling

---------

Co-authored-by: kimchanhyung98 <kimchanhyung98@users.noreply.github.com>

* Bump laravel/pint from 1.14.0 to 1.15.0

Bumps [laravel/pint](https://github.com/laravel/pint) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](laravel/pint@v1.14.0...v1.15.0)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump league/flysystem-aws-s3-v3 from 3.25.1 to 3.26.0

Bumps [league/flysystem-aws-s3-v3](https://github.com/thephpleague/flysystem-aws-s3-v3) from 3.25.1 to 3.26.0.
- [Commits](thephpleague/flysystem-aws-s3-v3@3.25.1...3.26.0)

---
updated-dependencies:
- dependency-name: league/flysystem-aws-s3-v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump psalm/plugin-laravel from 2.10.1 to 2.11.0

Bumps [psalm/plugin-laravel](https://github.com/psalm/psalm-plugin-laravel) from 2.10.1 to 2.11.0.
- [Release notes](https://github.com/psalm/psalm-plugin-laravel/releases)
- [Commits](psalm/psalm-plugin-laravel@v2.10.1...v2.11.0)

---
updated-dependencies:
- dependency-name: psalm/plugin-laravel
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump laravel/framework from 10.48.3 to 10.48.4

Bumps [laravel/framework](https://github.com/laravel/framework) from 10.48.3 to 10.48.4.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](laravel/framework@v10.48.3...v10.48.4)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump laravel/sail from 1.28.1 to 1.29.1

Bumps [laravel/sail](https://github.com/laravel/sail) from 1.28.1 to 1.29.1.
- [Release notes](https://github.com/laravel/sail/releases)
- [Changelog](https://github.com/laravel/sail/blob/1.x/CHANGELOG.md)
- [Commits](laravel/sail@v1.28.1...v1.29.1)

---
updated-dependencies:
- dependency-name: laravel/sail
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump phpunit/phpunit from 10.5.11 to 10.5.16

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 10.5.11 to 10.5.16.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/10.5.16/ChangeLog-10.5.md)
- [Commits](sebastianbergmann/phpunit@10.5.11...10.5.16)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* 게시글 검색 기능 추가 (#65)

* Bump zircote/swagger-php from 4.8.4 to 4.8.5 (#46)

Bumps [zircote/swagger-php](https://github.com/zircote/swagger-php) from 4.8.4 to 4.8.5.
- [Release notes](https://github.com/zircote/swagger-php/releases)
- [Changelog](https://github.com/zircote/swagger-php/blob/master/Changelog.md)
- [Commits](zircote/swagger-php@4.8.4...4.8.5)

---
updated-dependencies:
- dependency-name: zircote/swagger-php
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump laravel/sail from 1.28.1 to 1.28.2 (#47)

Bumps [laravel/sail](https://github.com/laravel/sail) from 1.28.1 to 1.28.2.
- [Release notes](https://github.com/laravel/sail/releases)
- [Changelog](https://github.com/laravel/sail/blob/1.x/CHANGELOG.md)
- [Commits](laravel/sail@v1.28.1...v1.28.2)

---
updated-dependencies:
- dependency-name: laravel/sail
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump phpunit/phpunit from 10.5.11 to 10.5.12 (#44)

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 10.5.11 to 10.5.12.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/10.5.12/ChangeLog-10.5.md)
- [Commits](sebastianbergmann/phpunit@10.5.11...10.5.12)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump laravel/framework from 10.46.0 to 10.47.0 (#45)

Bumps [laravel/framework](https://github.com/laravel/framework) from 10.46.0 to 10.47.0.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/10.x/CHANGELOG.md)
- [Commits](laravel/framework@v10.46.0...v10.47.0)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Add laravel/scout package

* Update .env.example

* Update post seeding

* Add algolia/algoliasearch-client-php package

* Create Post searchable

* Update post type

* Update post index(search)

* Fix apple login, jwtConfig construct

- Lcobucci\JWT\Configuration is not instantiable
- Run 'php artisan route:list'

* Add dedoc/scramble package

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump zircote/swagger-php from 4.8.4 to 4.8.7 (#61)

Bumps [zircote/swagger-php](https://github.com/zircote/swagger-php) from 4.8.4 to 4.8.7.
- [Release notes](https://github.com/zircote/swagger-php/releases)
- [Changelog](https://github.com/zircote/swagger-php/blob/master/Changelog.md)
- [Commits](zircote/swagger-php@4.8.4...4.8.7)

---
updated-dependencies:
- dependency-name: zircote/swagger-php
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 (#53)

Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.6.0 to 2.0.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](dependabot/fetch-metadata@v1.6.0...v2.0.0)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Fix package update interval

* 게시글 예외 처리 (#66)

* Update PostController, exception

* Update PostController, transaction

* Create Post FormRequest

* Fix PostSeeder

* Update Post ShowResource, is_edit

Check if edits are possible

* Update UserFactory, email_verified_at null

* Update MessageResource

* 회원 수정, 탈퇴 추가 (#67)

* Update users migration, nickname unique

* Update users nickname

* Update UserResource

* Fix UserController namespace

* Create user language(localization)

* Create User Update&Destroy

초안 작성

* Update user destroy, provider disconnect

* Update user edit

* Fix return type&comment

* Bump spatie/laravel-ignition from 2.5.0 to 2.6.2

Bumps [spatie/laravel-ignition](https://github.com/spatie/laravel-ignition) from 2.5.0 to 2.6.2.
- [Release notes](https://github.com/spatie/laravel-ignition/releases)
- [Changelog](https://github.com/spatie/laravel-ignition/blob/main/CHANGELOG.md)
- [Commits](spatie/laravel-ignition@2.5.0...2.6.2)

---
updated-dependencies:
- dependency-name: spatie/laravel-ignition
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump laravel/socialite from 5.12.1 to 5.13.2

Bumps [laravel/socialite](https://github.com/laravel/socialite) from 5.12.1 to 5.13.2.
- [Release notes](https://github.com/laravel/socialite/releases)
- [Changelog](https://github.com/laravel/socialite/blob/5.x/CHANGELOG.md)
- [Commits](laravel/socialite@v5.12.1...v5.13.2)

---
updated-dependencies:
- dependency-name: laravel/socialite
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump doctrine/dbal from 3.8.3 to 3.8.4

Bumps [doctrine/dbal](https://github.com/doctrine/dbal) from 3.8.3 to 3.8.4.
- [Release notes](https://github.com/doctrine/dbal/releases)
- [Commits](doctrine/dbal@3.8.3...3.8.4)

---
updated-dependencies:
- dependency-name: doctrine/dbal
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump laravel/pint from 1.15.0 to 1.15.3

Bumps [laravel/pint](https://github.com/laravel/pint) from 1.15.0 to 1.15.3.
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](laravel/pint@v1.15.0...v1.15.3)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump laravel/framework from 10.48.4 to 10.48.10

Bumps [laravel/framework](https://github.com/laravel/framework) from 10.48.4 to 10.48.10.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/11.x/CHANGELOG.md)
- [Commits](laravel/framework@v10.48.4...v10.48.10)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump league/flysystem-aws-s3-v3 from 3.26.0 to 3.27.0

Bumps [league/flysystem-aws-s3-v3](https://github.com/thephpleague/flysystem-aws-s3-v3) from 3.26.0 to 3.27.0.
- [Commits](thephpleague/flysystem-aws-s3-v3@3.26.0...3.27.0)

---
updated-dependencies:
- dependency-name: league/flysystem-aws-s3-v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump laravel/scout from 10.8.4 to 10.8.6

Bumps [laravel/scout](https://github.com/laravel/scout) from 10.8.4 to 10.8.6.
- [Release notes](https://github.com/laravel/scout/releases)
- [Changelog](https://github.com/laravel/scout/blob/10.x/CHANGELOG.md)
- [Commits](laravel/scout@v10.8.4...v10.8.6)

---
updated-dependencies:
- dependency-name: laravel/scout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump phpunit/phpunit from 10.5.16 to 10.5.20

Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 10.5.16 to 10.5.20.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases)
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/10.5.20/ChangeLog-10.5.md)
- [Commits](sebastianbergmann/phpunit@10.5.16...10.5.20)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump socialiteproviders/kakao from 4.2.2 to 4.3.0

Bumps [socialiteproviders/kakao](https://github.com/SocialiteProviders/Kakao) from 4.2.2 to 4.3.0.
- [Release notes](https://github.com/SocialiteProviders/Kakao/releases)
- [Commits](SocialiteProviders/Kakao@4.2.2...4.3.0)

---
updated-dependencies:
- dependency-name: socialiteproviders/kakao
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump zircote/swagger-php from 4.8.7 to 4.9.0

Bumps [zircote/swagger-php](https://github.com/zircote/swagger-php) from 4.8.7 to 4.9.0.
- [Release notes](https://github.com/zircote/swagger-php/releases)
- [Changelog](https://github.com/zircote/swagger-php/blob/master/Changelog.md)
- [Commits](zircote/swagger-php@4.8.7...4.9.0)

---
updated-dependencies:
- dependency-name: zircote/swagger-php
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0

Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](dependabot/fetch-metadata@v2.0.0...v2.1.0)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update routes, accounts delete

Update DELETE method to POST method

* Create UserDestroyRequest

need deleted reason

* Update UserResource directory

* Update Post withSoftdeleted user

* Update User.php

* Update AppServiceProvider, withoutGlobalScope

- private post, you cannot check your own post

* Delete Viewable post global scope

* Update Post show, policy

* Upgrading To 11.0 (#82)

* Update Packages

Remove packages
- doctrine/dbal
- guzzlehttp/guzzle
- beyondcode/laravel-query-detector
- kimchanhyung98/laravel-maker
- psalm/plugin-laravel

* Update app

* Update config

* Update migrations

* Update routes

* Update laravel 11

* Update github action, run tests

* Update run-tests.yml

* Update run-tests.yml

* Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 (#80)

Bumps [aglipanci/laravel-pint-action](https://github.com/aglipanci/laravel-pint-action) from 2.3.1 to 2.4.
- [Release notes](https://github.com/aglipanci/laravel-pint-action/releases)
- [Commits](aglipanci/laravel-pint-action@2.3.1...2.4)

---
updated-dependencies:
- dependency-name: aglipanci/laravel-pint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@gmail.com>

* Update README.md

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: kimchanhyung98 <kimchanhyung98@users.noreply.github.com>
  • Loading branch information
4 people authored May 21, 2024
1 parent 7870031 commit 9e63cd8
Show file tree
Hide file tree
Showing 51 changed files with 1,728 additions and 3,343 deletions.
78 changes: 44 additions & 34 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,77 @@ APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=Asia/Seoul
APP_URL=http://localhost
APP_WEB_URL=http://localhost:3000

APP_LOCALE=ko
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=ko_KR

APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database
# APP_MAINTENANCE_STORE=redis

BCRYPT_ROUNDS=12

# Log
LOG_CHANNEL=daily
#LOG_CHANNEL=stack
# LOG_CHANNEL=stack
LOG_STACK="daily, slack"
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

# Log: Slack
LOG_SLACK_WEBHOOK_URL=
LOG_SLACK_USERNAME="${APP_NAME}"
LOG_SLACK_EMOJI=":boom:"
LOG_SLACK_LEVELS=critical

# Database
DB_CONNECTION=mysql
# DB_CONNECTION=sqlite
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=sail
DB_PASSWORD=password

# Session
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

# Broadcast
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database

# Cache
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
#CACHE_DRIVER=redis
#QUEUE_CONNECTION=redis
CACHE_STORE=database
CACHE_PREFIX=
# CACHE_DRIVER=redis
# QUEUE_CONNECTION=redis

MEMCACHED_HOST=127.0.0.1

REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MEMCACHED_HOST=127.0.0.1

# Session
SESSION_DRIVER=file
SESSION_LIFETIME=120

# Mail
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_MAILER=log
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"

# Broadcast
BROADCAST_DRIVER=log
#BROADCAST_DRIVER=pusher
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

# File System
FILESYSTEM_DISK=local
#FILESYSTEM_DISK=s3
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=ap-northeast-2
Expand All @@ -79,16 +94,11 @@ SCOUT_DRIVER=algolia
SCOUT_PREFIX=
SCOUT_QUEUE=false
SCOUT_IDENTIFY=false
#ALGOLIA_APP_ID=
#ALGOLIA_SECRET=
# ALGOLIA_APP_ID=
# ALGOLIA_SECRET=

# Laravel Vite
VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

# Apple Login
APPLE_TEAM_ID=
Expand Down
115 changes: 115 additions & 0 deletions .env.testing
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Application
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=Asia/Seoul
APP_URL=http://localhost

APP_LOCALE=ko
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=ko_KR

APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database
# APP_MAINTENANCE_STORE=redis

BCRYPT_ROUNDS=12

# Log
LOG_CHANNEL=daily
# LOG_CHANNEL=stack
LOG_STACK="daily, slack"
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

# Log: Slack
LOG_SLACK_WEBHOOK_URL=
LOG_SLACK_USERNAME="${APP_NAME}"
LOG_SLACK_EMOJI=":boom:"
LOG_SLACK_LEVELS=critical

# Database
DB_CONNECTION=mysql
# DB_CONNECTION=sqlite
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=sail
DB_PASSWORD=password

# Session
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

# Broadcast
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database

# Cache
CACHE_STORE=database
CACHE_PREFIX=
# CACHE_DRIVER=redis
# QUEUE_CONNECTION=redis

MEMCACHED_HOST=127.0.0.1

REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

# Mail
MAIL_MAILER=log
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"

# File System
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=ap-northeast-2
AWS_BUCKET=
AWS_URL=https://s3.amazonaws.com
AWS_ENDPOINT=http://minio:9000
AWS_USE_PATH_STYLE_ENDPOINT=false

# Laravel Sail
APP_PORT=80
SAIL_XDEBUG_MODE=develop,debug
SAIL_XDEBUG_CONFIG="client_host=<host-ip-address>"
WWWUSER="www-data"
WWWGROUP=1000

# Laravel Scout
SCOUT_DRIVER=algolia
SCOUT_PREFIX=
SCOUT_QUEUE=false
SCOUT_IDENTIFY=false
# ALGOLIA_APP_ID=
# ALGOLIA_SECRET=

# Laravel Vite
VITE_APP_NAME="${APP_NAME}"

# Apple Login
APPLE_TEAM_ID=
APPLE_KEY_ID=
# bundle id (com.company.app)
APPLE_CLIENT_ID=
APPLE_CLIENT_SECRET=
APPLE_REDIRECT_URI=

# Kakao Login
KAKAO_CLIENT_ID=
KAKAO_CLIENT_SECRET=
KAKAO_REDIRECT_URI=
KAKAO_ADMIN_KEY=
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2.0.0
uses: dependabot/fetch-metadata@v2.1.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@2.3.1
uses: aglipanci/laravel-pint-action@2.4
with:
preset: laravel

Expand Down
36 changes: 17 additions & 19 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: run-tests

on:
push:
pull_request:
branches:
- main
- develop
paths:
- '**.php'
- '.github/workflows/run-tests.yml'
Expand All @@ -16,14 +19,12 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.3] # [8.2, 8.3]
laravel: [10.*] # [10.*, 11.*]
stability: [prefer-lowest, prefer-stable]
os: [ ubuntu-latest, windows-latest ]
php: [ 8.3 ]
laravel: [ 11.* ]
stability: [ prefer-lowest, prefer-stable ]
include:
- laravel: 10.*
testbench: 8.*
carbon: ^2.63
- laravel: 11.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -38,18 +39,15 @@ jobs:
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install composer dependencies
run: composer install -n --prefer-dist

- name: Install dependencies
- name: Prepare Laravel Application
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
php artisan key:generate --env=testing
- name: List Installed Dependencies
run: composer show -D
- name: Run tests
run: php artisan test

- name: Execute tests
run: vendor/bin/pest --ci
# - name: Run Static Analysis
# run: ./vendor/bin/phpstan analyse --memory-limit=2G --error-format=github
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@
/storage/*.key
/storage/clockwork
/vendor
.phpactor.json
.phpunit.result.cache
Homestead.json
Homestead.yaml
docker-compose.override.yml
auth.json
*.log
*.sql

# Environment
.env
.env.testing
.env.backup
.env.production
.env.development

# IDE
/.fleet
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
필요한 최소한의 기능을 구현해놓은 템플릿입니다.
[Sail](https://laravel.com/docs/10.x/sail)을 사용하여 실행할 수 있습니다.

- PHP 8.3 & Laravel 10
- PHP 8.3 & Laravel 11
- Redis
- AWS ECR, EB, S3
- (Next.js 14)
- [next-starter-kit](https://github.com/LeeByeongMuk/next-starter-kit)

## Install

Expand All @@ -22,4 +22,3 @@ sail artisan scout:import "App\Models\Post"

Scramble - Laravel OpenAPI(Swagger) Generator 를 사용하여 API 문서를 확인할 수 있습니다.
- localhost/docs/api

8 changes: 2 additions & 6 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
abstract class Controller
{
use AuthorizesRequests, ValidatesRequests;
//
}
4 changes: 3 additions & 1 deletion app/Http/Controllers/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function index(IndexRequest $request): AnonymousResourceCollection
->when($request->type, function ($query, $type) {
return $query->where('type', $type);
})->query(function ($query) {
return $query->with('user:id,nickname');
return $query->open()->with('user:id,nickname');
})->paginate(10)
);
}
Expand Down Expand Up @@ -60,6 +60,8 @@ public function store(StoreRequest $request): MessageResource

public function show(Post $post): ShowResource
{
Gate::authorize('view', $post);

try {
$post->increment('hit');
} catch (Exception $e) {
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/User/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace App\Http\Controllers\User;

use App\Http\Controllers\Controller;
use App\Http\Resources\Account\UserResource;
use App\Http\Resources\User\UserResource;
use Illuminate\Support\Facades\Auth;

class UserController extends Controller
Expand Down
Loading

0 comments on commit 9e63cd8

Please sign in to comment.