Support the ongoing development of Laravel.io →
posted 6 years ago
Last updated 1 year ago.
0

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?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.