Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missed Illuminate Schema facade #202

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

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.

None yet

2 participants