Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- docker-compose
- MySQL
- AWS
- ec2
- staging area
- working directory
- php
- Selenium
- Ruby On Rails
- dockerfile
- pagination
- centOS7
- SQL
- props
- ruby
- imagemagick
- Wordpress
- ubuntu
- linux
- cron
- Python
- NGINX
- vue
- Git
- react
- docker
- javascript
- codeigniter4
- controller
- laravel
Archives
- Today
- Total
목록친구추가 (1)
내가 한 노력들
[ Laravel ] 웹사이트 개발 (친구 요청 및 친구 추가 기능)
지난번에 만들어놓은 친구추가기능에서 조금 변경을 했다. 원래는 작성자의 아이디를 클릭하면 아코디언 패널이 나타나서 친구추가를 누르면 바로 친구추가가 되는 기능이었다. 이번에 변경한 점은 친구추가를 누르게되면 상대방에게 친구요청이 가게되고, 상대방이 친구요청 수락을 누르게되면 친구가되는 형식이다. Migration 생성 Schema::create('request_friends', function (Blueprint $table) { $table->id(); $table->foreignId('from'); $table->foreignId('to'); $table->foreign('from')->references('id')->on('users')->onDelete('cascade'); $table->fore..
IT 공부/Laravel
2021. 4. 14. 23:41