Using the php artisan make: repository command

3

Hello, I would like to ask a question. I am using the command:

php artisan make:repository ProjectNote

And I would like to know how to make the command understand that I want my migrate to have the name

create_table_project_notes

And therefore my table is named

project_notes

Could someone give me a light?

    
asked by anonymous 06.05.2016 / 21:01

1 answer

3

Anderson the command is correct. < php artisan make:repository ProjectNote , with this command you will have the result below.

Migration
2016_07_10_225826_create_project_notes_table.php

public function up()
    {
        Schema::create('project_notes', function(Blueprint $table) {
            $table->increments('id');

            $table->timestamps();
        });
    }
    
    
11.07.2016 / 01:08