How can I share functions between components, for example, I have the next function
public function findAccount()
{
$account = Account::where('email',$this->variable['email'])->first();
return $account;
}
This function is used in 3 diferent components but I don't want to have it in the three components
plugins/author/plugin/components/user.php
plugins/author/plugin/components/account.php
plugins/author/plugin/components/billing.php
Any ideas? Wich is the bettter aproach?