1 min readMay 18, 2016
One final step I would take is extract the methods into a trait and set the (new User) to a constant enforced by an interface.
class UserSearch implements Searchable{
const MODEL = App\User;
use SearchableTrait;
}
One final step I would take is extract the methods into a trait and set the (new User) to a constant enforced by an interface.
class UserSearch implements Searchable{
const MODEL = App\User;
use SearchableTrait;
}