mardi 27 septembre 2016

How to refactor common columns in migration in laravel?

I have these columns which I need to use on every migration tables.

$table->string('created_by');
$table->string('updated_by')->nullable();
$table->timestamps();

I need to extract these line, so that I do not have to write them every time. How can I achieve that with laravel 5.2?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire