title: "Array to string conversion" errorr Laravel - Trying to save array to database
body: <p>Sorry Im new to Laravel and trying to save to the database for the first time. Im trying to save an array to the database but the error "array to string conversion" is appearing. I've tried changing the string value in the migration file to other options but the same error is appearing.</p>
  
  <p>Controller</p>
  
  <pre><code>    public function store(Request $request)
  {   
      Myroutes::create([ //posting to acc table
          'start' =&gt; $request-&gt;start,
          'end' =&gt; $request-&gt;end,
          'waypoints' =&gt; $request-&gt;waypoints
      ]);
  
      return redirect('/');
  }
  </code></pre>
  
  <p>migration</p>
  
  <pre><code> public function up()
  {
      Schema::create('myroutes', function (Blueprint $table) {
          $table-&gt;increments('myroute_id');
          $table-&gt;integer('user_id');
          $table-&gt;string('start');
          $table-&gt;string('end');
          $table-&gt;string('waypoints');
          $table-&gt;timestamps();
      });
  }
  </code></pre>
  
  <p>model</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Myroutes extends Model
  {
      protected $fillable = [
          'user_id',
          'start',
          'end',
          'waypoints'
      ];
  }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>&lt;div id="dynamicInput" class="form-group"&gt;
                      &lt;label&gt;Additional Destinations&lt;/label&gt;
                      &lt;input type="text" name="waypoints[]" class="form-control" autocomplete="on"&gt;
                  &lt;/div&gt;
  </code></pre>
  
  <p>Database table</p>
  
  <p><a href="https://i.stack.imgur.com/wMVQf.png" rel="nofollow noreferrer">database-img</a></p>