Skip to content

Conversation

@artysold
Copy link

@artysold artysold commented Jul 5, 2023

Hello and thank you for this package!

Migrations are generated without using "Illuminate\Support\Facades\Schema", which means you have to add it manually. It's a little annoying.

Now it's fixed :)

image
image

artysold added 2 commits July 5, 2023 12:07
Added missed Illuminate Schema facade.
Added missed Illuminate Schema facade.
@braseidon
Copy link

braseidon commented Jul 11, 2023

Might as well create the migration classes the new way too:

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('abc', function (Blueprint $table) {
            //
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        //
    }
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants