Home > database >  laravel jetstream photo profile section doesnt apear
laravel jetstream photo profile section doesnt apear

Time:02-08

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 :(

CodePudding user response:

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.

CodePudding user response:

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.

  •  Tags:  
  • Related