title: Argument 1 passed to Illuminate\Validation\Factory::make() must be of the type array, object given
body: <p>I tried insert ads using validation system but its give me error:</p>
  <blockquote>
  <p><code>Argument 1 passed to Illuminate\Validation\Factory::make() must be of the type array, object given, called in D:\wamp\www\pagination\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 261</code></p>
  </blockquote>
  <p><strong>AdsController.php</strong></p>
  <pre><code>public function store(Request $request)
      {
          $file = new File($request-&gt;all());
          $file-&gt;user_id = Auth::user()-&gt;id;
  
          $validator = Validator::make($file-&gt;all(), [
           'category_id'=&gt;['bail','required'],
           'titre' =&gt; ['bail', 'exclude_unless:category_id,1', 'required', 'string', 'min:3', 'max:255'],
           'name' =&gt; ['bail', 'exclude_unless:category_id,2', 'required', 'string', 'min:3', 'max:255'],
           'last' =&gt; ['bail', 'exclude_unless:category_id,1', 'required', 'string', 'min:3', 'max:255'],
  ]);
        File::create($validator-&gt;validated());
          return Redirect::to(&quot;/&quot;)
          -&gt;withSuccess('Great! file has been successfully uploaded.');
      }
  </code></pre>