What is the use of laravel binary-type migration?

Here we explain how to make sql blob column type migration in laravel. what is use of laravel binary column.


Laravel binary or blob migration

Laravel migration binary() method create SQL BLOB column type.

Binary columns store graphic images which is not easily store by character data type columns. for more information of binary type column go here

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