Jump to content

riru

Members
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

0 Comum

About riru

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Oi Navegante! aonde eu faria a alteração? abs
  2. esse é o código do /config/image.php aonde seria a atualização para buscar a imagem na pasta raiz/public/uploads atualmente ele grava nessa pasta , mas busca na raiz/uploads. <?php return array( /* |-------------------------------------------------------------------------- | Default Image Driver |-------------------------------------------------------------------------- | | This option controls the default image "driver" used by Imagine library | to manipulate images. | | Supported: "gd", "imagick", "gmagick" | */ 'driver' => 'gd', /* |-------------------------------------------------------------------------- | Memory limit |-------------------------------------------------------------------------- | | When manipulating an image, the memory limit is increased to this value | */ 'memory_limit' => '128M', /* |-------------------------------------------------------------------------- | Source directories |-------------------------------------------------------------------------- | | A list a directories to look for images | */ 'src_dirs' => array( public_path() ), /* |-------------------------------------------------------------------------- | Host |-------------------------------------------------------------------------- | | The http host where the image are served. Used by the Image::url() method | to generate the right URL. | */ 'host' => '', /* |-------------------------------------------------------------------------- | Pattern |-------------------------------------------------------------------------- | | The pattern that is used to match routes that will be handled by the | ImageController. The {parameters} will be remplaced by the url parameters | pattern. | */ 'pattern' => '^(.*){parameters}\.(jpg|jpeg|png|gif|JPG|JPEG|PNG|GIF)$', /* |-------------------------------------------------------------------------- | URL parameter |-------------------------------------------------------------------------- | | The URL parameter that will be appended to your image filename containing | all the options for image manipulation. You have to put {options} where | you want options to be placed. Keep in mind that this parameter is used | in an url so all characters should be URL safe. | | Default: -image({options}) | | Example: /uploads/photo-image(300x300-grayscale).jpg | */ 'url_parameter' => '-image({options})', /* |-------------------------------------------------------------------------- | URL parameter separator |-------------------------------------------------------------------------- | | The URL parameter separator is used to build the parameters string | that will replace {options} in url_parameter | | Default: - | | Example: /uploads/photo-image(300x300-grayscale).jpg | */ 'url_parameter_separator' => '-', /* |-------------------------------------------------------------------------- | Serve image |-------------------------------------------------------------------------- | | If true, a route will be added to catch image containing the | URL parameter above. | */ 'serve' => true, /* |-------------------------------------------------------------------------- | Serve route |-------------------------------------------------------------------------- | | If you want to restrict the route to a specific domain. | */ 'serve_domain' => null, /* |-------------------------------------------------------------------------- | Serve route |-------------------------------------------------------------------------- | | The route where image are served | */ 'serve_route' => '{image_pattern}', /* |-------------------------------------------------------------------------- | Serve custom Filters only |-------------------------------------------------------------------------- | | Restrict options in url to custom filters only. This prevent direct | manipulation of the image. | */ 'serve_custom_filters_only' => false, /* |-------------------------------------------------------------------------- | Serve expires |-------------------------------------------------------------------------- | | The expires headers that are sent when sending image. | */ 'serve_expires' => (3600*24*31), /* |-------------------------------------------------------------------------- | Write image |-------------------------------------------------------------------------- | | When serving an image, write the manipulated image in the same directory | as the original image so the next request will serve this static file | */ 'write_image' => false, /* |-------------------------------------------------------------------------- | Write path |-------------------------------------------------------------------------- | | By default, the manipulated images are saved in the same path as the | as the original image, you can override this path here | */ 'write_path' => null, /* |-------------------------------------------------------------------------- | Proxy |-------------------------------------------------------------------------- | | This enable or disable the proxy route | */ 'proxy' => false, /* |-------------------------------------------------------------------------- | Proxy expires |-------------------------------------------------------------------------- | | The expires headers that are sent when proxying image. Defaults to | serve_expires | */ 'proxy_expires' => null, /* |-------------------------------------------------------------------------- | Proxy route |-------------------------------------------------------------------------- | | The route that will be used to serve proxied image | */ 'proxy_route' => '{image_proxy_pattern}', /* |-------------------------------------------------------------------------- | Proxy route pattern |-------------------------------------------------------------------------- | | The proxy route pattern that will be available as `image_proxy_pattern`. | If the value is null, the default image pattern will be used. | */ 'proxy_route_pattern' => null, /* |-------------------------------------------------------------------------- | Proxy route domain |-------------------------------------------------------------------------- | | If you wind to bind your route to a specific domain. | */ 'proxy_route_domain' => null, /* |-------------------------------------------------------------------------- | Proxy filesystem |-------------------------------------------------------------------------- | | The filesystem from which the file will be proxied | */ 'proxy_filesystem' => 'cloud', /* |-------------------------------------------------------------------------- | Proxy temporary directory |-------------------------------------------------------------------------- | | Write the manipulated image back to the file system | */ 'proxy_write_image' => true, /* |-------------------------------------------------------------------------- | Proxy cache |-------------------------------------------------------------------------- | | Cache the response of the proxy on the local filesystem. The proxy will be | cached using the laravel cache driver. | */ 'proxy_cache' => true, /* |-------------------------------------------------------------------------- | Proxy cache filesystem |-------------------------------------------------------------------------- | | If you want the proxy to cache files on a filesystem instead of using the | cache driver. | */ 'proxy_cache_filesystem' => null, /* |-------------------------------------------------------------------------- | Proxy cache expiration |-------------------------------------------------------------------------- | | The number of minuts that a proxied image can stay in cache. If the value | is -1, the image is cached forever. | */ 'proxy_cache_expiration' => 60*24, /* |-------------------------------------------------------------------------- | Proxy temporary path |-------------------------------------------------------------------------- | | The temporary path where the manipulated file are saved. | */ 'proxy_tmp_path' => sys_get_temp_dir(), );
  3. Temos a pasta raiz de todo provedor compartilhado public_html (aqui despejo todos arquivos do site que contem index.php e etc.., o laravel faz upload para public_html/public/uploads e busca na raiz public_html/uploads, como faço para modificar a busca pelos arquivos ao invez da raiz /uploads para public/uploads? acho que ficaria mais fácil que mudar a pasta para upload. estão assim: 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app/public'), ], 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), 'visibility' => 'public', ], 's3' => [ 'driver' => 's3', 'key' => 'your-key', 'secret' => 'your-secret', 'region' => 'your-region', 'bucket' => 'your-bucket', ], ], ];
  4. Temos a pasta raiz de todo provedor compartilhado public_html (aqui despejo todos arquivos do site que contem index.php e etc.., o laravel faz upload para public_html/public/uploads e busca na raiz public_html/uploads, como faço para modificar a busca pelos arquivos ao invez da raiz /uploads para public/uploads? acho que ficaria mais fácil que mudar a pasta para upload. estão assim: 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app/public'), ], 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), 'visibility' => 'public', ], 's3' => [ 'driver' => 's3', 'key' => 'your-key', 'secret' => 'your-secret', 'region' => 'your-region', 'bucket' => 'your-bucket', ], ], ];
  5. Boa noite pessoa! Como vão? Meu site foi feito em laravel e está rodando em hospedagem compartilhada, tudo funciona bem, menos as imagens quando são feitos upload (aparecem um x e não carrega imagem), O site grava as fotos corretamente no diretório public/uploads e carrega no diretório raiz a pasta uploads (onde não tem nenhuma imagem). Como faço para trocar a instrução de puxar a imagem em public/uploads ao invés da pasta uploads? abs.
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.