고요빛물결

Laravel Orion

Building REST APIs with Laravel Orion 라는 글이 오늘 나와서 찾아보니

 

Laravel Orion이라는 프로젝트가 있네요. https://tailflow.github.io/laravel-orion-docs/

 

몇줄만 추가하면 되는 이 미친 Relationship(관계) 

 

그누보드에 릴레이션을 넣을 수 있을까?

 

[code]

| Domain | Method    | URI                                             | Name                                   | Action                                                                    | Middleware                                      |
+--------+-----------+-------------------------------------------------+----------------------------------------+---------------------------------------------------------------------------+-------------------------------------------------+
|        | GET|HEAD  | api/posts                                       | api.posts.index                        | App\Http\Controllers\Api\PostsController@index                            | api                                             |
|        | POST      | api/posts/search                                | api.posts.search                       | App\Http\Controllers\Api\PostsController@index                            | api                                             |
|        | POST      | api/posts                                       | api.posts.store                        | App\Http\Controllers\Api\PostsController@store                            | api                                             |
|        | GET|HEAD  | api/posts/{post}                                | api.posts.show                         | App\Http\Controllers\Api\PostsController@show                             | api                                             |
|        | PUT|PATCH | api/posts/{post}                                | api.posts.update                       | App\Http\Controllers\Api\PostsController@update                           | api                                             |
|        | DELETE    | api/posts/{post}                                | api.posts.destroy                      | App\Http\Controllers\Api\PostsController@destroy                          | api                                             |
|        | POST      | api/posts/{post}/restore                        | api.posts.restore                      | App\Http\Controllers\Api\PostsController@restore                          | api                                             |
|        | POST      | api/posts/batch                                 | api.posts.batchStore                   | App\Http\Controllers\Api\PostsController@batchStore                       | api                                             |
|        | PATCH     | api/posts/batch                                 | api.posts.batchUpdate                  | App\Http\Controllers\Api\PostsController@batchUpdate                      | api                                             |
|        | DELETE    | api/posts/batch                                 | api.posts.batchDestroy                 | App\Http\Controllers\Api\PostsController@batchDestroy                     | api                                             |
|        | POST      | api/posts/batch/restore                         | api.posts.batchRestore                 | App\Http\Controllers\Api\PostsController@batchRestore                     | api                                             |
|        | GET|HEAD  | api/posts/{post}/tags                           | api.posts.relation.tags.index          | App\Http\Controllers\Api\PostTagsController@index                         | api                                             |
|        | POST      | api/posts/{post}/tags/search                    | api.posts.relation.tags.search         | App\Http\Controllers\Api\PostTagsController@index                         | api                                             |
|        | POST      | api/posts/{post}/tags                           | api.posts.relation.tags.store          | App\Http\Controllers\Api\PostTagsController@store                         | api                                             |
|        | GET|HEAD  | api/posts/{post}/tags/{tag}                     | api.posts.relation.tags.show           | App\Http\Controllers\Api\PostTagsController@show                          | api                                             |
|        | PUT|PATCH | api/posts/{post}/tags/{tag}                     | api.posts.relation.tags.update         | App\Http\Controllers\Api\PostTagsController@update                        | api                                             |
|        | DELETE    | api/posts/{post}/tags/{tag}                     | api.posts.relation.tags.destroy        | App\Http\Controllers\Api\PostTagsController@destroy                       | api                                             |
|        | POST      | api/posts/{post}/tags/batch                     | api.posts.relation.tags.batchStore     | App\Http\Controllers\Api\PostTagsController@batchStore                    | api                                             |
|        | PATCH     | api/posts/{post}/tags/batch                     | api.posts.relation.tags.batchUpdate    | App\Http\Controllers\Api\PostTagsController@batchUpdate                   | api                                             |
|        | DELETE    | api/posts/{post}/tags/batch                     | api.posts.relation.tags.batchDestroy   | App\Http\Controllers\Api\PostTagsController@batchDestroy                  | api                                             |
|        | POST      | api/posts/{post}/tags/attach                    | api.posts.relation.tags.attach         | App\Http\Controllers\Api\PostTagsController@attach                        | api                                             |
|        | DELETE    | api/posts/{post}/tags/detach                    | api.posts.relation.tags.detach         | App\Http\Controllers\Api\PostTagsController@detach                        | api                                             |
|        | PATCH     | api/posts/{post}/tags/sync                      | api.posts.relation.tags.sync           | App\Http\Controllers\Api\PostTagsController@sync                          | api                                             |
|        | PATCH     | api/posts/{post}/tags/toggle                    | api.posts.relation.tags.toggle         | App\Http\Controllers\Api\PostTagsController@toggle                        | api                                             |
|        | PATCH     | api/posts/{post}/tags/{tag}/pivot               | api.posts.relation.tags.pivot  

[/code]

|

댓글 1개

중단된 라온보드가 다시 시작됬으면 좋을 것 같습니다. http://laravel.sir.kr/
댓글을 작성하시려면 로그인이 필요합니다.
+
분류 제목 글쓴이 날짜 조회
라라벨
[라라벨]
19-03-12 조회 2,808
기타 19-03-12 조회 2,445
기타 19-02-28 조회 3,188
라라벨 19-02-27 조회 2,609
기타 19-02-27 조회 2,577
라라벨 19-02-21 조회 3,023
라라벨 19-02-19 조회 2,274
라라벨 19-01-20 조회 2,679
라라벨 19-01-19 조회 3,782
라라벨 19-01-16 조회 2,265
기타 19-01-16 조회 2,010
라라벨 19-01-15 조회 2,690
라라벨 19-01-15 조회 3,606
라라벨 19-01-15 조회 2,693
라라벨 19-01-14 조회 2,654
라라벨 19-01-14 조회 1,882
라라벨 19-01-14 조회 2,481
라라벨 19-01-13 조회 2,597
라라벨 19-01-13 조회 6,017
코드이그나이터 19-01-13 조회 7,400
라라벨 19-01-12 조회 1,893
라라벨 19-01-12 조회 1,796
라라벨 19-01-11 조회 1,794
라라벨 19-01-11 조회 1,824
라라벨 19-01-11 조회 2,238
라라벨 19-01-10 조회 1,731
라라벨 19-01-10 조회 1,870
라라벨 19-01-10 조회 2,021
기타 19-01-09 조회 1,675
라라벨 19-01-09 조회 2,123