keithbrink / affiliates-spark

An affiliates package for Laravel Spark that allows you to track referrals from affiliates and pay commission
MIT License
23 stars 7 forks source link

replace spark settings with affiliate settings to remove unwanted links #4

Closed jayenne closed 5 years ago

jayenne commented 5 years ago

Whilst logged in as an affiliate, an affiliate may wish to edit thier password and name/avatar they have no need to adit the API or Teams menu. If it's not possible to hide these from within the package code, then would you include examples within your docs showing exactly how hide them in the spark templates.

keithbrink commented 5 years ago

I think the easiest think here would be to edit resources/views/vendor/spark/nav/user.blade.php and add a quick check: $user->isAffiliate();