avatar code location

Closed
Vanguard - Advanced PHP Login and User Management Vanguard - Advanced PHP Login and User Management October 28, 2018
Login to reply
Milos Stojanovic Support Agent
11 months ago
Closed due to inactivity.
Milos Stojanovic Support Agent
11 months ago

Hey Joshua,

You can add similar methods to the app/Presenters/UserPresenter.php file. 

Vanguard is using laracasts/presenter package for such purposes so you can check their docs for more info: https://github.com/laracasts/Presenter

Regards,
Milos

Joshua Blevins
11 months ago

Where can I create a method similar to the {{ auth()->user()->present()->avatar }}

I have a different location for the photo and i need it bring up this /storage/app/employee_photos/{{$employees->eid}}.png as the photo for this location