php artisan make:controller Group/GroupController -r
php artisan make:controller Board/BoardController -r
php artisan make:controller Post/PostController -r
php artisan make:controller Comment/CommentController -r
Route::resource('posts', 'Post\PostController', ['only' => ['index', 'show']]);
Route::resource('posts', 'Post\PostController')->only([
'index', 'show'
]);
HTTP Verb를 보면 5개를 사용합니다. https://www.restapitutorial.com/lessons/httpmethods.html
GET 은 Read
POST는 Create
PUT은 Update/Replace
PATCH는 Update/Modify
DELETE는 Delete 입니다. 그러다 보니
GET으로 create와 edit 하는 것은 행동과 단어가 맞지 않아서 가능하면 안쓰는 것이 좋을 것 같습니다.
Route::resource('groups', 'Group\GroupController', ['except' => ['create', 'edit']]);
Route::resource('groups', 'Group\GroupController')->except([
'create', 'edit'
]);
PUT과 PATCH는 둘다 update/replace, update/modify인데..
PUT은 레코드 전체를 보내는 것이고, PATCH는 원하는 필드만 보내는 것 같습니다.
참조: https://www.testingexcellence.com/difference-put-patch-requests/
게시글 목록
| 번호 | 제목 |
|---|---|
| 258 | |
| 256 | |
| 247 | |
| 246 | |
| 239 |
라라벨
Clockwork
6
|
| 236 | |
| 235 | |
| 220 | |
| 219 |
기타
고도몰5 프레임워크?
|
| 213 | |
| 211 | |
| 206 | |
| 201 |
라라벨
라라벨 5.5
2
|
| 197 |
라라벨
Voten.co
2
|
| 193 |
코드이그나이터
씨아이보드의 초기 화면
4
|
| 190 | |
| 185 |
코드이그나이터
씨아이보드 설치해보기 - 로컬컴퓨터에..
4
|
| 181 | |
| 179 | |
| 177 | |
| 171 | |
| 170 | |
| 169 |
라라벨
패키지 - DB의 스냅샷
1
|
| 168 | |
| 167 | |
| 165 | |
| 164 | |
| 163 |
라라벨
Mailable에서의 마크다운
|
| 162 | |
| 161 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기