title: Uuid on pivot table in Laravel
body: <p>Im trying execute laravel migration to create pivot table. I've two models which are defined in relation many to many. Below is method to migration</p>
  
  <pre><code>public function up() {
      Schema::create('api_user', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;integer('api_id')-&gt;unsigned()-&gt;index();
          $table-&gt;foreign('api_id')-&gt;references('id')-&gt;on('apis')-&gt;onDelete('cascade');
  
          $table-&gt;uuid('user_uid')-&gt;unsigned()-&gt;index();
          $table-&gt;foreign('user_uid')-&gt;references('uid')-&gt;on('users')-&gt;onDelete('cascade');
  
          $table-&gt;timestamps();
      });
  }
  </code></pre>
  
  <p>After execute php artisan migrate , I received sql error</p>
  
  <pre><code>SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unsigned not null, `created_at` timestamp null, `updated_at` timestamp null) def' at line 1 (SQL: create table `api_user` (`id` int unsigned not null auto_increment primary key, `api_id` int unsigned not null, `user_uid` char(36) unsigned not null, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
  </code></pre>
  
  <p>Uuid is storing as varch in DB. Perhaps varchart cannot set as unsigned attribute. Is anothoer way to create pivot table from migration except Laravel-5-Generators-Extended.?</p>