Heavy Columns
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Mostafaznv\Larupload\Enums\LaruploadMode;
return new class extends Migration {
public function up()
{
Schema::create('uploads', function(Blueprint $table) {
$table->id();
$table->upload('file', LaruploadMode::HEAVY);
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('uploads');
}
};The following columns are created in HEAVY mode:
file_namefile_idfile_original_namefile_sizefile_typefile_mime_typefile_widthfile_heightfile_durationfile_dominant_colorfile_formatfile_cover
These columns store separate information about the file and are useful when you need to perform special queries or sort data.
Last updated