title: How to connect 'users' table with 'post' table in laravel?
body: <p>This is my structure, I want to connect these two tables in laravel, How to do it?</p>
  
  <p>Post Table:</p>
  
  <pre><code>public function up()
  {
      Schema::create('post', function (Blueprint $table) {
          $table-&gt;increments('post_id');
          $table-&gt;string('post');
          $table-&gt;integer('time');
          $table-&gt;string('host');
          $table-&gt;integer('vote_up');
          $table-&gt;integer('vote_down');
          $table-&gt;foreign('id_fk')-&gt;references('id')-&gt;on('users');
          $table-&gt;timestamps();
      });
  }
  </code></pre>
  
  <p>Users Table:</p>
  
  <pre><code>public function up()
  {
      Schema::create('users', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;string('name');
          $table-&gt;date('dob');
          $table-&gt;string('email')-&gt;unique();
          $table-&gt;string('password');
          $table-&gt;rememberToken();
          $table-&gt;timestamps();
      });
  }
  </code></pre>