lundi 25 septembre 2017

i get this error when running migration on laravel

please help me!!!im failed using migration in laravel. here's my code and i get this error --> PHP Parse error: syntax error, unexpected '$table' (T_VARIABLE), expecting identifier (T_STRING) in C:\xampp\htdocs\ multi-providers\database\migrations\2017_09_25_114701_create_social_provider_table.php on line 18

[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected '$table' (T_VARIABLE), expecting identifier (T_STRING)

enter code here
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSocialProviderTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('social_provider', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->unsigned();
            $table->foreign('user_id')->references('user_id')->on('users');
            $table->string('provider_id');
            $table->string('provider');
            $table->timestamps();


        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('social_provider');
    }
}



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2yBuOxL
via IFTTT

Aucun commentaire:

Enregistrer un commentaire