Answer the question
In order to leave comments, you need to log in
Why don't migrations work in laravel?
Created a migration in laravel. I execute the artisan migrate command, and in response I get an Undefined property error: Illuminate\Database\Schema\Blueprint::$string
Here is a code snippet:
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function(Blueprint $table) {
$table->increments('id');
$table->string('email')->unique();
$table->string[60]('password');
$table->string('username')->unique();
$table->timestamps();
});
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question