Seriously - you have to be willing to be helped. If you post it like this, it's almost unreadable. I went through this myself to structure your code, so we can actually see what's going on there:
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('usuario', 50);
$table->string('password', 50);
$table->string('nombre', 50);
$table->string('apellido', 50);
$table->string('departamento', 50);
$table->string('puesto', 50);
$table->string('correo_electronico', 50);
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::dropIfExists('users');
}
}
I don't see an issue with that code either - are you sure this is what the parser is complaining about?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community