Laravel Migration Fatal error: Call to undefined method Illuminate\Database\Schema\Blueprint::integar()
<p>My code:</p>

<pre><code>use Illuminate\Database\Schema\Blueprint;

use Illuminate\Database\Migrations\Migration;

class CreateTasksTable extends Migration

{
    /**
     * Run the migrations.

     *
     * @return void
     */
    public function up()
    {
        Schema::create('tasks', function (Blueprint $table) {
            $table-&gt;increments('id');
             $table-&gt;integar('user_id')-&gt;index();
            $table-&gt;string('name');
            $table-&gt;string('food');
            $table-&gt;string('quantity');
            $table-&gt;timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('tasks');
    }
}
</code></pre>