change column type to datetime in laravel migration code example
Example: laravel migration change column type
public function up()
{
Schema::table('sometable', function (Blueprint $table) {
$table->text('text')->change();
});
}
public function up()
{
Schema::table('sometable', function (Blueprint $table) {
$table->text('text')->change();
});
}