lundi 26 juin 2017

Laravel Php artisan migrate Error

what i need was to connect my new project into an old database which i used earlier project.it is must.so that i create data model attendance.php

class attendance extends Model
{
     protected $table = "attendance";
   protected $fillable = ['id',

   'trainee_id',
   'name',
   'time'
   ];
}

then the migration called create_attendance_table

`Schema::create('attendance', function (Blueprint $table) {
            $table->increments('id');
            $table->string('trainee_id');
            $table->strind('name');
            $table->string('time');
            $table->rememberToken();
            $table->timestamps();
        });`

As well as here is the env

`APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:aMklPOtN0cQEm2OiaeFpBaw75ghPLTxvj8Yx7PrQ8Gc=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=Training_Management
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
`

This is the error um getting.

enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire