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
1 month ago
Closed due to inactivity.
Milos Stojanovic Support Agent
1 month 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
1 month 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