mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Merge branch '3.x' into 4.x
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
name: 'Deploy website on release'
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
forge-deploy:
|
||||
name: 'Laravel Forge Deploy'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Deploy
|
||||
uses: jbrooksuk/laravel-forge-action@v1.0.2
|
||||
with:
|
||||
trigger_url: ${{ secrets.WEBSITE_DEPLOYMENT_TRIGGER_URL }}
|
||||
@@ -129,15 +129,15 @@ trait HasFileAttachments
|
||||
return null;
|
||||
}
|
||||
|
||||
if ($storage->getVisibility($file) === 'private') {
|
||||
try {
|
||||
try {
|
||||
if ($storage->getVisibility($file) === 'private') {
|
||||
return $storage->temporaryUrl(
|
||||
$file,
|
||||
now()->addMinutes(5),
|
||||
);
|
||||
} catch (Throwable $exception) {
|
||||
// This driver does not support creating temporary URLs.
|
||||
}
|
||||
} catch (Throwable $exception) {
|
||||
// This driver does not support creating temporary URLs.
|
||||
}
|
||||
|
||||
return $storage->url($file);
|
||||
|
||||
Reference in New Issue
Block a user