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
- AWS
- vue
- ubuntu
- SQL
- Selenium
- ruby
- working directory
- props
- dockerfile
- imagemagick
- controller
- docker
- Wordpress
- NGINX
- codeigniter4
- staging area
- Python
- ec2
- docker-compose
- MySQL
- linux
- php
- cron
- centOS7
- Ruby On Rails
- laravel
- Git
- pagination
- react
- javascript
Archives
- Today
- Total
목록블라인드 (1)
내가 한 노력들
[ Laravel ] 유저 블라인드 기능
방법은 유저 ID를 클릭해서 블라인드 추가를 누르면 된다. 블라인드 추가 블라인드 추가를 했을때, GET방식을 이용해서 해당 유저의 ID값을 전송한다. Route::get('/blind/{id}', [BlindController::class, 'add_blind'])->name('blind'); 그러면 설정해준 Route에 의해서 BlindController 클래스의 add_blind 함수를 동작시킨다. public function add_blind($id) { $blind_user = Blind_user::where('user_id', auth()->id())->where('target_id', $id)->first(); if($blind_user==null){ $values['user_id'] = a..
IT 공부/Laravel
2021. 5. 4. 23:02