Select2 and laravel 5.3 forms
<p>I have a laravel 5.3 app and i have a New Posts page with:</p>

<pre><code>&lt;div class="form-group col-sm-12"&gt;
    &lt;label for="tags"&gt; Select Tags&lt;/label&gt;
    &lt;select class="custom-select form-control" name="tags" id="tag-select" multiple="multiple"&gt;
    @foreach($tags as $tag)
      &lt;option value="{{$tag-&gt;id}}"&gt;{{$tag-&gt;name}} &lt;/option&gt;
    @endforeach      
    &lt;/select&gt;
&lt;/div&gt;
</code></pre>

<p>Using select2 <code>https://select2.github.io/</code></p>

<p>Tag Model</p>

<pre><code>&lt;?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class tag
 * @package App\Models
 * @version September 20, 2016, 5:31 am UTC
 */
class tag extends Model
{
    use SoftDeletes;

    public $table = 'tags';


    protected $dates = ['deleted_at'];


    public $fillable = [
        'name',
        'id'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'name' =&gt; 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [

    ];
    public function post()
    {
        return $this-&gt;belongsTo('App\Models\Post');
    }
    public function movie()
    {
        return $this-&gt;belongsTo('App\Models\Movies');
    }


}
</code></pre>

<p>At the controller when i <code>dd(request())</code> i only get the value of the last tag i clicked.</p>

<hr>

<p>Please help, how can i get the input to pass all the values and how to get them at the controller.</p>

<p>Anything else needed please let me know.</p>

<p>Thanks</p>