{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"laravel: where is $request->validate() defined?","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/553 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"553\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<ul class=\"simple\">\n<li>vendor\/laravel\/framework\/src\/Illuminate\/Http\/Request.php - IlluminateHttpRequest::validate() does not exist<\/li>\n<\/ul>\n<pre class=\"literal-block\">\nclass Request extends SymfonyRequest implements Arrayable, ArrayAccess\n{\n    use Concerns\\InteractsWithContentTypes,\n        Concerns\\InteractsWithFlashData,\n        Concerns\\InteractsWithInput,\n        Macroable;\n<\/pre>\n<p>Neither SymfonyRequest nor the traits have a <tt class=\"docutils literal\">validate()<\/tt> method.<\/p>\n<p>But <tt class=\"docutils literal\">Macroable<\/tt> defines <tt class=\"docutils literal\">__call<\/tt> and <tt class=\"docutils literal\">__callStatic<\/tt>, so probably from there. Can't dump $request because too large -&gt; link to blogpost<\/p>\n<pre class=\"literal-block\">\n$ ack 'equest::macro'\nvendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Providers\/FoundationServiceProvider.php\n38:        Request::macro('validate', function (array $rules, ...$params) {\n<\/pre>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/553\/rev-raw\/e26326268213eb3a950baa9758d81ffe507a9e36\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/553#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
