bigIncrements('id'); $table->bigInteger('user_id'); $table->string('token', 16)->unique(); $table->bigInteger('item_id'); $table->enum('type', ['file', 'files', 'folder']); $table->enum('permission', ['visitor', 'editor'])->nullable(); $table->boolean('protected'); $table->string('password')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('shares'); } }