-1

eh been trying to make the section of upload photo appear in the update section, but it does not appear unless I remove the if and I do not understand why I already modify the jetstream.php the .env and I do not know what else to do enter image description here that if I do not know what it does but it is what does not allow the image to be displayed enter image description here the photo section does not appear :(

2 Answers2

2

To enable profile photo, you must enable the feature in your application's config/jetstream.php configuration file. simply uncomment the corresponding feature entry from the features configuration item within this file:

use Laravel\Jetstream\Features;

'features' => [
    Features::profilePhotos(), <- uncomment this line
    Features::api(),
    Features::teams(),
],

Also don't forget to run

php artisan storage:link

This is straight from the Jetstream Docs By the way.

P. K. Tharindu
  • 2,565
  • 3
  • 17
  • 34
0

If profile photo section still doesn't appear after enabling profile photos

Try clearing the cache by running:

php artisan optimize

then refresh the browser.

jade
  • 781
  • 12
  • 24