title: Missing argument 1 for App\Http\Controllers\
body: <p>im new in laravel. I have a problem on my app version 5.2.45</p>
  
  <p>I having Missing argument 1 for App\Http\Controllers\PhotoController::create() when i try to pass variable to view with information from database:</p>
  
  <p>Route:</p>
  
  <pre><code>Route::get('photo/create/{id}', 'PhotoController@create');
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\Http\Requests;
  
  use DB;
  
  use Session;
  
  class PhotoController extends Controller { private $table = 'photos';
  
  // Show Create Form
  public function create($gallery_id) {
      // render view
      return view('photo.create', compact('gallery_id'));
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>@section('content')
  
  &lt;div class="row"&gt;
      &lt;div class="col-md-8 col-md-offset-2"&gt;
          &lt;h1&gt;Upload photo&lt;/h1&gt;
  
          {!! Form::open(array('action' =&gt; 'PhotoController@store', 'enctype' =&gt; 'multipart/form-data')) !!}
          {{ Form::label('title', 'Title:') }}
          {{ Form::text('title', null, array('class' =&gt; 'form-control', 'required' =&gt; '', 'maxlength' =&gt; '255')) }}
  
          {{ Form::label('description', 'Description:') }}
          {{ Form::text('description', null, array('class' =&gt; 'form-control', 'required' =&gt; '', 'minlength' =&gt; '5', 'maxlength' =&gt; '255') ) }}
  
          {{ Form::label('image', 'Photo:') }}
          {{ Form::file('cover') }}
  
          &lt;input type="hidden" name="gallery_id" value="{{ $gallery_id }}"&gt;
  
          {{ Form::submit('Upload photo', array('class' =&gt; 'btn btn-success btn-lg btn-block', 'style' =&gt; 'margin-top: 20px;')) }}
          {!! Form::close() !!}
  
      &lt;/div&gt;
  &lt;/div&gt;
  @endsection
  </code></pre>