Skip to content

Commit 3e4e958

Browse files
committed
wip
1 parent 369858d commit 3e4e958

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

config/blog-crud.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
use Intervention\Image\ImageManager;
4-
53
return [
64
/*
75
|--------------------------------------------------------------------------
@@ -23,7 +21,7 @@
2321
|
2422
| Allows the option for users to define their own driver
2523
*/
26-
'image_driver' => ImageManager::gd(),
24+
'image_driver' => \Intervention\Image\ImageManager::gd(),
2725

2826
/*
2927
|--------------------------------------------------------------------------

src/Actions/Blogs/StoreBlogCoverAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public function __invoke(UploadedFile $file, int $blogId, string $path = '/cover
1212
$newFile = config('blog-crud.image_driver')->read($file)->scale(500, 500)->encode();
1313

1414
$structure = app()->environment('testing') || app()->environment('local')
15-
? config('blog-crud.buckets.local') : config('blog-crud.bucket_paths.production');
15+
? config('blog-crud.bucket_paths.local') : config('blog-crud.bucket_paths.production');
1616

1717
$path = $structure . 'blogs/' . $blogId . '/cover-image.' . $file->getClientOriginalExtension();
1818

src/Actions/Files/StoreFileAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class StoreFileAction
1010
public function __invoke(UploadedFile $file, int $blogId, string $path = '/content/'): string
1111
{
1212
$structure = app()->environment('testing') || app()->environment('local')
13-
? config('blog-crud.buckets.local') : config('blog-crud.bucket_paths.production');
13+
? config('blog-crud.bucket_paths.local') : config('blog-crud.bucket_paths.production');
1414

1515
$path = $file->hashName(path: "{$structure}blogs/{$blogId}{$path}");
1616

src/BlogServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function boot()
1313
], 'blog-crud-migrations');
1414

1515
$this->publishes([
16-
__DIR__ . '/../config/' => config_path('blog-crud.php')
16+
__DIR__ . '/../config/blog-crud.php' => config_path('blog-crud.php')
1717
], 'blog-crud-config');
1818
}
1919
}

0 commit comments

Comments
 (0)