title: How to fix"Illuminate\Support\Collection::get(), 0passed in /AMPPS/www/lsapp/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php"
body: <p>In an attempt to program a search bar, I created a GET method and added a new controller where it gets the relevant data and returns it with the view.</p>
  
  <pre class="lang-php prettyprint-override"><code>    //This is the form in the view named "index.blade.php"
  
      {!! Form::open(['action' =&gt; 'SearchesController@search', 'method' =&gt; 'GET']) !!}   
          &lt;form class="form-inline md-form mr-auto mb-4"&gt;
  
              {{Form::text('search', '', ['class'=&gt;'form-control', 'placeholder'=&gt;'Search Anything'])}}
  
              &lt;button class="btn aqua-gradient btn-rounded btn-sm my-0" type="submit"&gt;Search&lt;/button&gt;
  
         &lt;/form&gt;
      {!! Form::close() !!}
  
      //---------------------------------------------------------
  
      //This is in the "web.php"
  
      Route::get('/posts/search', 'SearchesController@search');
  
      //---------------------------------------------------------
  
      //The following code is the controller named "SearchesController.php"
  
      &lt;?php
  
      namespace App\Http\Controllers;
  
      use Illuminate\Http\Request;
  
      use Illuminate\Support\Facades\Storage;
      use App\Post;
      use DB;
  
      use Illuminate\Support\Facades\Auth;
  
      class SearchesController extends Controller
      {
          public function search(Request $request)
          {
              $this-&gt;validate($request, [
                   'search' =&gt; 'required',
              ]);
  
              $search = metaphone($request-&gt;input('search'));
  
  
              $posts = Post::where('sounds_like','LIKE',"%{$search}%")
                  -&gt;orderBy('title', 'desc')
                  -&gt;paginate(10)
                  -&gt;get();
  
              return view('posts.index')-&gt;with('posts',$posts);
          }
      }
  </code></pre>
  
  <p>I expected the output of a view with all the data returned with the view, but instead got the <strong>error</strong> message :  </p>
  
  <blockquote>
    <p>"Too few arguments to function Illuminate\Support\Collection::get(), 0 passed in /Applications/AMPPS/www/lsapp/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php on line 23 and at least 1 expected"</p>
  </blockquote>