diff --git a/app/Livewire/PostFeature.php b/app/Livewire/PostFeature.php index c426e06..b3f1cbe 100644 --- a/app/Livewire/PostFeature.php +++ b/app/Livewire/PostFeature.php @@ -36,9 +36,8 @@ HTML; { if ($this->post == null) { - return <<<'HTML' -
-HTML; + $href = route('posts.home'); + return view('livewire.post-feature-empty'); } return view('livewire.post-feature'); } diff --git a/config/image.php b/config/image.php index f13ce7f..6f5096f 100644 --- a/config/image.php +++ b/config/image.php @@ -16,7 +16,7 @@ return [ | */ - 'driver' => \Intervention\Image\Drivers\Imagick\Driver::class, + 'driver' => \Intervention\Image\Drivers\Gd\Driver::class, /* |-------------------------------------------------------------------------- diff --git a/deploy/php.ini b/deploy/php.ini index 0147b64..000fd18 100644 --- a/deploy/php.ini +++ b/deploy/php.ini @@ -1,4 +1,4 @@ upload_max_filesize = 100M post_max_size = 128M -memory_limit = 1G +memory_limit = 2G max_execution_time = 120 diff --git a/resources/views/livewire/post-feature-empty.blade.php b/resources/views/livewire/post-feature-empty.blade.php new file mode 100644 index 0000000..5f5e782 --- /dev/null +++ b/resources/views/livewire/post-feature-empty.blade.php @@ -0,0 +1,5 @@ + + + + +