Shift with red gradient lettering

Adopt anonymous migrations

Laravel 8+

Avoid migration class name collisions by adopting anonymous migrations available in Laravel 8.37 and above.

Before

class CreateUsersTable extends Migration
{
public function up()
{
//
}
}

After

return new class extends Migration
{
public function up()
{
//
}
};

← Back to the Workbench Tasks

Sign in with any of the following services to connect Shift with your Laravel project.


Don't use one of these services?

Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.