dimanche 26 juillet 2020

Error: Use of undefined constant result -assumed 'result'

I'm trying to develop a website with Laravel and ican't seem to create the table 'ens' getting the following error:

Use of undefined constant result -assumed 'result' <this will throw an 
  Error in a future version of PHP>

and then it indicated the line

         $table->string('photo',150)->ingres_field_nullable(result, index); 

from the following code of ens table migration

   <?php

 use Illuminate\Database\Migrations\Migration;
 use Illuminate\Database\Schema\Blueprint;
 use Illuminate\Support\Facades\Schema;

 class CreateEnsTable extends Migration
{
 
  public function up()
  {
     Schema::create('ens', function (Blueprint $table) {
        $table->increments('id');
          $table->string('name');
        $table->string('email')->unique();
        $table->string('password');
        $table->string('photo',150)->ingres_field_nullable(result, index);
        $table->rememberToken();
        $table->timestamps();
    });
     }

    public function down()
   {
    Schema::dropIfExists('ens');
    }
  }
   

I can't migrate my DB table 'ens' because of it :/

Is there anything I can do to fix it? Thank you!



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/32XJF78
via IFTTT

Aucun commentaire:

Enregistrer un commentaire