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

create empty pivot table #189

Open
johnef opened this issue Aug 27, 2020 · 0 comments
Open

create empty pivot table #189

johnef opened this issue Aug 27, 2020 · 0 comments

Comments

@johnef
Copy link

johnef commented Aug 27, 2020

  • Laravel Version: 5.8.13
  • PHP Version: 7.1.3
  • Laravel-5-Generators-Extended Version:
  • Command: php artisan make:migration:pivot cities suppliers

What I did

I am trying to run php artisan make:migration:pivot cities suppliers

What happened

ya sure it created the migration witch looks like this 2020_08_27_030342_create__pivot_table.php
and inside the migration file all the fields empty something like this

Schema::create('', function (Blueprint $table) {
            $table->integer('_id')->unsigned()->index();
            $table->foreign('_id')->references('id')->on('')->onDelete('cascade');
            $table->integer('_id')->unsigned()->index();
            $table->foreign('_id')->references('id')->on('')->onDelete('cascade');
            $table->primary(['_id', '_id']);
        });
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

No branches or pull requests

1 participant