Sp resolver 2

Change this to now use a class so that tests work and we can use Eloquent methods in the resolvers.