laravel-admin Avatar Upload Settings

1, newly erected laravel-admin project, so a lot of configuration does not make things right, first configure the config / filesystems.php file, together with the configuration of the disks in admin

'ADMIN' => [
  'Driver' => 'local',
  'the root' => public_path ( 'Upload'),
  'visibility' => 'public',
  'URL' => the env ( 'to APP_URL'). '/ Upload / ',
],
wherein APP_URL file using the env

2, modify .env files, starting with localhost, configure different addresses depending on the domain name (without modifying the picture does not display properly)

APP_URL = domain name you set

 

Guess you like

Origin www.cnblogs.com/zwsblogs/p/11407450.html