i'm trying to make web services, i have done with string or numeric data. now i need to pass image data through my web services. how should i add the table using php laravel code?
i tried to use blob when i created the table, but it throws me an error saying that method blob does not exist
Schema::create('testings', function (Blueprint $table) {
$table->increments('id');
$table->string('description');
$table->blob('photo');
$table->timestamps();
});
i expect the migration to create the table containing the photo column which can save the photo file when user upload
thanks for your help :)