Laravel lineString and multiLineString data type migration

Here we will discuss laravel migration for lineString and multiLineString datatype column.

Laravel lineString data type migration

Laravel migration lineString() method create mysql LINESTRING type column.

public function up()
{
    Schema::create('users', function (Blueprint $table) {
        $table->lineString('positions');
    });
}

Laravel multiLineString data type migration

Laravel migration multiLineString() method create mysql MULTILINESTRING type column.

public function up()
{
    Schema::create('users', function (Blueprint $table) {
        $table->multiLineString('positions');
    });
}
php laravel developer anmol sharma

Anmol Sharma

I am a software engineer and have experience in web development technologies like php, Laravel, Codeigniter, javascript, jquery, bootstrap and I like to share my deep knowledge by these blogs.

Random tutorial links