hipsterjazzbo / LaraParse

LaraParse provides a nice integration for using Parse (parse.com) with Laravel 5+
MIT License
27 stars 19 forks source link

Recommended of setting custom registration fields #7

Closed cshipley closed 9 years ago

cshipley commented 9 years ago

I want to add some custom registration fields.

I can replace the default generated App/Services/Registrar with LaraParse/Auth/Registrar and then change the create() method to do what I want.

Is this the best way to do this, or is there a better way?

nicklee1990 commented 9 years ago

The best way in my view would be to simply change the the App/Services/Registrar to extend LaraParse/Auth/Registrar then override the create method.

cshipley commented 9 years ago

Thanks. Overriding create worked. Using the validator is a bit quirky since it is declared private in the parent class. However I just copied the way the constructor was being called and it works.

Thanks!