-4
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');
}
}
Erraten Sie hier, dass die Methode eigentlich * Ganzzahl genannt wird * ...!? – deceze
Diese Frage sollte eine Art Auszeichnung gewinnen :-p – malhal