In this tutorial we'll look at how to build on the default features and behaviour of the Orchestra Platform by extending the user model. To achieve this we'll leverage the event-driven nature of Laravel.
The Orchestra Platform provides a basic schema definition for the user model, which you can see in the migration step below:
<?php
/**
* Excerpt from '/vendor/orchestra/auth/src/migrations/{$timestamp}_orchestra_auth_create_users_table.php'
*/
Schema::create('users', function($table)
{
$table->increments('id');
$table->string('email', 100);
$table->string('password', 60);
/* ..etc...*/
$table->string('fullname', 100)->nullable();
$table->integer('status')->nullable();
$table->timestamps();
$table->softDeletes();
$table->unique('email');
});
Continue reading this post