Blueprint-Klasse erweitern?
Ich möchte das überschreibentimestamps()
Funktion in der gefundenBlueprint
Klasse. Wie kann ich das machen?
z.B.,
public function up() {
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('username')->unique();
$table->string('password');
$table->string('email');
$table->string('name');
$table->timestamps(); // <-- I want this to call my method instead of the one found in the base Blueprint class
});
}