Skip to content

Commit 86e9a43

Browse files
authored
Merge branch 'master' into update-readme-v2.28
2 parents de092dd + 789ebfa commit 86e9a43

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Fixing lints
247247
- v2.16 Top Navbar is fixed
248248
- v2.19 Publish _astro assets
249249
- v2.25 `laravel-request-docs:export` command to export
250-
- v2.28 Allow extra documentation to be defined on the `rules` method of the Request class by @Ken-vdE
250+
- v2.28 Allow extra documentation to be defined on the `rules` method of the Request class. By @Ken-vdE
251251
252252
253253
# Contributors

resources/dist/_astro/App.d0c8305a.js renamed to resources/dist/_astro/App.3acc1883.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/dist/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html class=antialiased lang=en><head><meta charset=UTF-8><meta content="width=device-width" name=viewport><meta content="Astro v2.0.13" name=generator><title>LRD - Laravel Request Docs</title><link href=/request-docs/_astro/index.51445650.css rel=stylesheet /></head><body><style>astro-island,astro-slot{display:contents}</style><script>var l;(self.Astro=self.Astro||{}).only=t=>{(async()=>{await(await t())()})()},window.dispatchEvent(new Event("astro:only"));{const t={0:t=>t,1:t=>JSON.parse(t,e),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(JSON.parse(t,e)),5:t=>new Set(JSON.parse(t,e)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(JSON.parse(t)),9:t=>new Uint16Array(JSON.parse(t)),10:t=>new Uint32Array(JSON.parse(t))},e=(e,s)=>{if(""===e||!Array.isArray(s))return s;const[r,i]=s;return r in t?t[r](i):void 0};customElements.get("astro-island")||customElements.define("astro-island",((l=class extends HTMLElement{constructor(){super(...arguments),this.hydrate=()=>{if(!this.hydrator||this.parentElement&&this.parentElement.closest("astro-island[ssr]"))return;const t=this.querySelectorAll("astro-slot"),s={},r=this.querySelectorAll("template[data-astro-template]");for(const t of r){const e=t.closest(this.tagName);!e||!e.isSameNode(this)||(s[t.getAttribute("data-astro-template")||"default"]=t.innerHTML,t.remove())}for(const e of t){const t=e.closest(this.tagName);!t||!t.isSameNode(this)||(s[e.getAttribute("name")||"default"]=e.innerHTML)}const i=this.hasAttribute("props")?JSON.parse(this.getAttribute("props"),e):{};this.hydrator(this)(this.Component,i,s,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),window.removeEventListener("astro:hydrate",this.hydrate),window.dispatchEvent(new CustomEvent("astro:hydrate"))}}connectedCallback(){!this.hasAttribute("await-children")||this.firstChild?this.childrenConnectedCallback():new MutationObserver(((t,e)=>{e.disconnect(),this.childrenConnectedCallback()})).observe(this,{childList:!0})}async childrenConnectedCallback(){window.addEventListener("astro:hydrate",this.hydrate);let t=this.getAttribute("before-hydration-url");t&&await import(t),this.start()}start(){const t=JSON.parse(this.getAttribute("opts")),e=this.getAttribute("client");void 0!==Astro[e]?Astro[e]((async()=>{const t=this.getAttribute("renderer-url"),[e,{default:s}]=await Promise.all([import(this.getAttribute("component-url")),t?import(t):()=>()=>{}]),r=this.getAttribute("component-export")||"default";if(r.includes(".")){this.Component=e;for(const t of r.split("."))this.Component=this.Component[t]}else this.Component=e[r];return this.hydrator=s,this.hydrate}),t,this):window.addEventListener(`astro:${e}`,(()=>this.start()),{once:!0})}attributeChangedCallback(){this.hydrator&&this.hydrate()}}).observedAttributes=["props"],l))}</script><astro-island client=only component-export=default component-url=/request-docs/_astro/App.d0c8305a.js opts={&quot;name&quot;:&quot;App&quot;,&quot;value&quot;:true} props={} renderer-url=/request-docs/_astro/client.8c8eb78c.js ssr="" uid=Z26kMUL></astro-island></body></html>
1+
<!DOCTYPE html><html class=antialiased lang=en><head><meta charset=UTF-8><meta content="width=device-width" name=viewport><meta content="Astro v2.0.13" name=generator><title>LRD - Laravel Request Docs</title><link href=/request-docs/_astro/index.51445650.css rel=stylesheet /></head><body><style>astro-island,astro-slot{display:contents}</style><script>var l;(self.Astro=self.Astro||{}).only=t=>{(async()=>{await(await t())()})()},window.dispatchEvent(new Event("astro:only"));{const t={0:t=>t,1:t=>JSON.parse(t,e),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(JSON.parse(t,e)),5:t=>new Set(JSON.parse(t,e)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(JSON.parse(t)),9:t=>new Uint16Array(JSON.parse(t)),10:t=>new Uint32Array(JSON.parse(t))},e=(e,s)=>{if(""===e||!Array.isArray(s))return s;const[r,i]=s;return r in t?t[r](i):void 0};customElements.get("astro-island")||customElements.define("astro-island",((l=class extends HTMLElement{constructor(){super(...arguments),this.hydrate=()=>{if(!this.hydrator||this.parentElement&&this.parentElement.closest("astro-island[ssr]"))return;const t=this.querySelectorAll("astro-slot"),s={},r=this.querySelectorAll("template[data-astro-template]");for(const t of r){const e=t.closest(this.tagName);!e||!e.isSameNode(this)||(s[t.getAttribute("data-astro-template")||"default"]=t.innerHTML,t.remove())}for(const e of t){const t=e.closest(this.tagName);!t||!t.isSameNode(this)||(s[e.getAttribute("name")||"default"]=e.innerHTML)}const i=this.hasAttribute("props")?JSON.parse(this.getAttribute("props"),e):{};this.hydrator(this)(this.Component,i,s,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),window.removeEventListener("astro:hydrate",this.hydrate),window.dispatchEvent(new CustomEvent("astro:hydrate"))}}connectedCallback(){!this.hasAttribute("await-children")||this.firstChild?this.childrenConnectedCallback():new MutationObserver(((t,e)=>{e.disconnect(),this.childrenConnectedCallback()})).observe(this,{childList:!0})}async childrenConnectedCallback(){window.addEventListener("astro:hydrate",this.hydrate);let t=this.getAttribute("before-hydration-url");t&&await import(t),this.start()}start(){const t=JSON.parse(this.getAttribute("opts")),e=this.getAttribute("client");void 0!==Astro[e]?Astro[e]((async()=>{const t=this.getAttribute("renderer-url"),[e,{default:s}]=await Promise.all([import(this.getAttribute("component-url")),t?import(t):()=>()=>{}]),r=this.getAttribute("component-export")||"default";if(r.includes(".")){this.Component=e;for(const t of r.split("."))this.Component=this.Component[t]}else this.Component=e[r];return this.hydrator=s,this.hydrate}),t,this):window.addEventListener(`astro:${e}`,(()=>this.start()),{once:!0})}attributeChangedCallback(){this.hydrator&&this.hydrate()}}).observedAttributes=["props"],l))}</script><astro-island client=only component-export=default component-url=/request-docs/_astro/App.3acc1883.js opts={&quot;name&quot;:&quot;App&quot;,&quot;value&quot;:true} props={} renderer-url=/request-docs/_astro/client.8c8eb78c.js ssr="" uid=Z26kMUL></astro-island></body></html>

tests/Stubs/TestControllers/CommentsOnRulesController.php renamed to tests/Stubs/TestControllers/CommentsOnRequestRulesMethodController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Rakutentech\LaravelRequestDocs\Tests\Stubs\TestControllers;
44

5-
use Rakutentech\LaravelRequestDocs\Tests\Stubs\TestRequests\CommentsOnRulesRequest;
5+
use Rakutentech\LaravelRequestDocs\Tests\Stubs\TestRequests\CommentsOnRequestRulesMethodRequest;
66

7-
class CommentsOnRulesController
7+
class CommentsOnRequestRulesMethodController
88
{
99
/**
1010
* Before
@@ -24,7 +24,7 @@ class CommentsOnRulesController
2424
*
2525
* After
2626
*/
27-
public function index(CommentsOnRulesRequest $request)
27+
public function index(CommentsOnRequestRulesMethodRequest $request)
2828
{
2929
return 1;
3030
}

tests/Stubs/TestRequests/CommentsOnRulesRequest.php renamed to tests/Stubs/TestRequests/CommentsOnRequestRulesMethodRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Illuminate\Foundation\Http\FormRequest;
66

7-
class CommentsOnRulesRequest extends FormRequest
7+
class CommentsOnRequestRulesMethodRequest extends FormRequest
88
{
99
/**
1010
* Get the validation rules that apply to the request.

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function registerRoutes()
4343
Route::get('health', [TestControllers\WelcomeController::class, 'health']);
4444
Route::get('single', TestControllers\SingleActionController::class);
4545
Route::delete('welcome/no-rules', [TestControllers\WelcomeController::class, 'noRules']);
46-
Route::post('comments-on-rules-method', [TestControllers\CommentsOnRulesController::class, 'index']);
46+
Route::post('comments-on-request-rules-method', [TestControllers\CommentsOnRequestRulesMethodController::class, 'index']);
4747

4848
Route::get('closure', function () {
4949
return true;

tests/mocks/lrd-response.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,10 @@
457457
]
458458
},
459459
{
460-
"uri": "comments-on-rules-method",
460+
"uri": "comments-on-request-rules-method",
461461
"middlewares": [],
462-
"controller": "CommentsOnRulesController",
463-
"controller_full_path": "Rakutentech\\LaravelRequestDocs\\Tests\\Stubs\\TestControllers\\CommentsOnRulesController",
462+
"controller": "CommentsOnRequestRulesMethodController",
463+
"controller_full_path": "Rakutentech\\LaravelRequestDocs\\Tests\\Stubs\\TestControllers\\CommentsOnRequestRulesMethodController",
464464
"method": "index",
465465
"http_method": "POST",
466466
"path_parameters": [],

0 commit comments

Comments
 (0)