title: Type error: Argument 2 passed to with() must be callable or null, object given
body: <pre><code>Route::get('/',function (){
      $collection = collect(['product'=&gt;'chair','price'=&gt;100]);    
      //dd($collection);
      return view('welcome')-with('prices',$collection);
  });
  </code></pre>
  <p>I want to pass $collection on view but I get this error:</p>
  <blockquote>
  <p>Type error: Argument 2 passed to with() must be callable or null,</p>
  <p>object given</p>
  </blockquote>
  <p>and I don't understand why.</p>
  <p>Can somebody explain me?</p>