In Laravel, I have a class User that extends Authenticatable and uses a trait called Activable:
class User extends Authenticable {
use Activable;
protected $is_active_column = 'is_active';
}
trait Activable {
/**
* The name of the column with the activable status
*
* @var string
*/
protected $is_active_column = 'is_active';
}
When I try to find a User in tinker I get this error:
[!] Aliasing 'User' to 'App\Models\User' for this Tinker session.
PHP Fatal error: App\Models\User and App\Traits\Activable define the same property ($is_active_column) in the composition of App\Models\User. However, the definition differs and is considered incompatible.