Laravel migration for longtext datatype column

Here we will make mysql longtext datatype migration. what is the capacity of data store by longtext column.

Laravel longText datatype migration

Laravel migration longText() method create LONGTEXT equivalent column. mysql longtext datatype column store maximum 4,294,967,295 characters data.

public function up()
{
    Schema::create('users', function (Blueprint $table) {
        $table->longText('payload');
    });
}
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