bigIncrements('id'); $table->string('method')->nullable(); $table->mediumText('request')->nullable(); $table->mediumText('url')->nullable(); $table->mediumText('referer')->nullable(); $table->text('languages')->nullable(); $table->text('useragent')->nullable(); $table->text('headers')->nullable(); $table->text('device')->nullable(); $table->text('platform')->nullable(); $table->text('browser')->nullable(); $table->ipAddress('ip')->nullable(); $table->nullableMorphs('visitable'); // object model $table->nullableMorphs('visitor'); // subject model $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists(config('visitor.table_name')); } }