Laravel Migration Fatal error: Call to undefined method Illuminate\Database\Schema\Blaupause::integar()

Mein 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->increments('id');
             $table->integar('user_id')->index();
            $table->string('name');
            $table->string('food');
            $table->string('quantity');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('tasks');
    }
}
  • Raten hier, dass die Methode tatsächlich aufgerufen integer...!?
  • diese Frage sollte gewinnen irgendeine Art von Preis :-p
Schreibe einen Kommentar