<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>laravel: where is $request-&gt;validate() defined?</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/553 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="553"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;ul class="simple"&gt;
&lt;li&gt;vendor/laravel/framework/src/Illuminate/Http/Request.php - IlluminateHttpRequest::validate() does not exist&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="literal-block"&gt;
class Request extends SymfonyRequest implements Arrayable, ArrayAccess
{
    use Concerns\InteractsWithContentTypes,
        Concerns\InteractsWithFlashData,
        Concerns\InteractsWithInput,
        Macroable;
&lt;/pre&gt;
&lt;p&gt;Neither SymfonyRequest nor the traits have a &lt;tt class="docutils literal"&gt;validate()&lt;/tt&gt; method.&lt;/p&gt;
&lt;p&gt;But &lt;tt class="docutils literal"&gt;Macroable&lt;/tt&gt; defines &lt;tt class="docutils literal"&gt;__call&lt;/tt&gt; and &lt;tt class="docutils literal"&gt;__callStatic&lt;/tt&gt;, so probably from there. Can't dump $request because too large -&amp;gt; link to blogpost&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ ack 'equest::macro'
vendor/laravel/framework/src/Illuminate/Foundation/Providers/FoundationServiceProvider.php
38:        Request::macro('validate', function (array $rules, ...$params) {
&lt;/pre&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/553/rev-raw/e26326268213eb3a950baa9758d81ffe507a9e36/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/553#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
