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

Empty table seed #8

Closed
Spir opened this issue Mar 28, 2014 · 1 comment
Closed

Empty table seed #8

Spir opened this issue Mar 28, 2014 · 1 comment

Comments

@Spir
Copy link
Contributor

Spir commented Mar 28, 2014

When using seed generator, table without any data are being seeded even if they have no data:

DB::table('my_table')->insert(array());

producing an error when launching the seed:

Illuminate\Database\Query\Builder::insert() must be of the type array, none given
@nWidart
Copy link
Owner

nWidart commented Jul 13, 2014

Tried with an empty table and got this seed file generated:

public function run()
    {
        DB::table('users')->insert(

        );
    }

@nWidart nWidart closed this as completed Aug 7, 2014
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

2 participants