Here is the scenario
I have a Login Trait...
trait LoginTrait {
public function login() {
// some login code here
}
public function someOtherFunction() {
// some elite code here
}
}
I have a Base (Parent) Controller...
class BaseUserController {
use LoginTrait;
}
I have another trait where I am overriding the login function...
trait MyLoginTrait {
use LoginTrait {
Traits\LoginTrait::login as oldLogin;
}
public function login() {
// some new elite login code
}
}
I have a Controller that extends the BaseUsersController...
class UsersController extends BaseUserController {
use MyLoginTrait;
}
My question is, How do I remove the LoginTrait from the BaseUserController?
Right now, I am attempting to login and the login function from LoginTrait is firing, not MyLoginTrait which has the new login function...