title: How can I give two different types of users the same functionality in Laravel?
body: <p>I want to give two different types of users the ability to create the same event, however the event needs a user_id, which the two different types of users could share. </p>
  
  <p>I am making an application in Laravel where two different types of users, a Player and a Vendor, can each make an event.</p>
  
  <p>Player</p>
  
  <pre><code>Schema::create('players', function (Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;string('first_name');
              $table-&gt;string('last_name');
              $table-&gt;integer('player_id_type')-&gt;default('1');
              $table-&gt;unsignedBigInteger('player_id');
              $table-&gt;string('email')-&gt;unique();
              $table-&gt;string('password');
              $table-&gt;rememberToken();
              $table-&gt;timestamps();
          });
  </code></pre>
  
  <p>Vendor</p>
  
  <pre><code>Schema::create('vendors', function (Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;string('store name');
              $table-&gt;string('email')-&gt;unique();
              $table-&gt;string('password');
              $table-&gt;rememberToken();
              $table-&gt;timestamps();
          });
  </code></pre>
  
  <p>event</p>
  
  <pre><code>Schema::create('events', function (Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;string('user_id');
              $table-&gt;string('name')
          });
  </code></pre>
  
  <p>The problem is that a Player and Vendor could both have the id = 1. Also, when creating the event I would not know whether to look for a player with that id or a vendor. </p>
  
  <p>Please over some suggestions on how I could either solve this or implement it differently. </p>
  
  <p>Thank you.</p>