A php trait to search laravel models