dimanche 7 août 2016

How does JosephSilber/bouncer migration work?

Schema::create(Models::table('abilities'), function (Blueprint $table) {
     $table->increments('id');
     $table->string('name');
     $table->integer('entity_id')->unsigned()->nullable();
     $table->string('entity_type')->nullable();
     $table->timestamps();
     $table->unique(['name', 'entity_id', 'entity_type']);
});

How does this Models::table() is working? What is the pourpose of this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire