Add search function for eloquent assignment