feat: Prepare Zemailnator for Dokploy deployment
- Add highly optimized Dockerfile with Nginx and PHP-FPM 8.4 - Add docker-compose.yml configured with Redis and MariaDB 10.11 - Implement entrypoint.sh and supervisord.conf for background workers - Refactor legacy IMAP scripts into scheduled Artisan Commands - Secure app by removing old routes with hardcoded basic auth credentials - Configure email attachments to use Laravel Storage instead of insecure public/tmp
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
namespace Tests\Concerns;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Support\Collection;
|
||||
use App\Models\Blog;
|
||||
use App\Models\Menu;
|
||||
use App\Models\Plan;
|
||||
use Exception;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
trait LoadsApplicationData
|
||||
{
|
||||
@@ -64,7 +64,7 @@ trait LoadsApplicationData
|
||||
try {
|
||||
$menus = cache()->remember('app_menus', now()->addHours(6), Menu::all(...));
|
||||
|
||||
$blogs = cache()->remember('app_blogs', now()->addHours(6), fn() => Blog::query()->where('is_published', 1)->get());
|
||||
$blogs = cache()->remember('app_blogs', now()->addHours(6), fn () => Blog::query()->where('is_published', 1)->get());
|
||||
|
||||
$plans = cache()->remember('app_plans', now()->addHours(6), Plan::all(...));
|
||||
} catch (Exception) {
|
||||
|
||||
Reference in New Issue
Block a user