As the title says, I get the error:
Syntax error, unexpected ´´usertype´´ expecting ...... \AccountTableSeeder.php on line:12
My AccountTableSeeder:
<?php
class AccountTableSeeder extends Seeder {
public function run()
{
DB::table('account')->delete();
User::create(array(
'name' => 'admin2',
'passwd' => Hash::make('0x,admin')
'usertype' => '1'
'money' => '1000'
'id' => '1'
'email' => 'admin@example.com'
'isTest' => ''
'secretquestion' => ''
'secretanswer' => ''
'registerip' => '192.168.0.0'
'regdate' => '2014-13-06 15:07:00.333'
));
}
}
My create_account_table
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAccountTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('account', function(Blueprint $table)
{
$table->char('name', 16)->unique();
$table->string('passwd');
$table->integer('usertype');
$table->integer('money');
$table->increments('id');
$table->string('email');
$table->tinyInteger('isTest');
$table->mediumText('secretquestion');
$table->mediumText('secretanswer');
$table->text('registerip');
$table->dateTime('regdate');
$table->unique( array('email','name','id') );
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::create('account', function(Blueprint $table)
{
//
});
}
}
I tried to use the commane: php artisan db:seed I hope you can help me :)