title: not saving collaborator data to the table Laravel 5.2
body: <p>in My Laravel 5.2 Application I have option add collaborators with the system. this is my ProjectCollaboratorController.php file</p>
  
  <p><a href="http://jsfiddle.net/lilan2/2b1essdy/" rel="nofollow noreferrer">jsfiddle.net/lilan2/2b1essdy/</a></p>
  
  <p>and this is the project_collaborator Model</p>
  
  <pre><code>class Collaboration extends Model{
  
      protected $table = 'project_collaborator';
      protected $fillable = ['project_id', 'collaborator_id'];
  
      public function user(){
          return $this-&gt;belongsTo(User::class, 'collaborator_id');
      }
  public function scopeProject($query, $id) {
          return $query-&gt;where('project_id', $id);
      }
  }
  </code></pre>
  
  <p>and this is the routes for collaborators route</p>
  
  <pre><code>Route::post('projects/{projects}/collaborators', [
      'uses' =&gt; 'ProjectCollaboratorsController@addCollaborator',
      'as'   =&gt; 'projects.collaborators.create',
      'middleware' =&gt; ['auth']
  ]);
  
  
  Route::get('/project/{project}/collaborators', function($id){ 
         $collaborators = \App\Collaboration::all();
         $project = \App\Project::findOrFail($id);
         return view('collaborators.form',compact('collaborators','project')); 
      })-&gt;name('collaborators.form');
  </code></pre>
  
  <p>this is collaborator add form</p>
  
  <pre><code>&lt;form class="form-vertical" role="form" method="post" action="{{ route('projects.collaborators.create', $project-&gt;id) }}"&gt;
          &lt;div class="form-group{{ $errors-&gt;has('collaborator') ? ' has-error' : '' }}"&gt;
              &lt;label&gt; Add New &lt;/label&gt;
              {!! mention()-&gt;asText('collaborator', old('collaborator'), 'users', 'username', 'form-control') !!}
              @if ($errors-&gt;has('collaborator'))
                  &lt;span class="help-block"&gt;{{ $errors-&gt;first('collaborator') }}&lt;/span&gt;
              @endif
          &lt;/div&gt;
  
          &lt;div class="form-group"&gt;
              &lt;button type="submit" class="btn btn-info"&gt;Add User&lt;/button&gt;
          &lt;/div&gt;
          &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>but when I clicked add collaborator button only page is refreshed not saving data to the table. how can fix this problem.</p>