- 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
29 lines
606 B
PHP
29 lines
606 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Meta;
|
|
use Illuminate\Database\Seeder;
|
|
use stdClass;
|
|
|
|
class MetaSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$metas = new stdClass;
|
|
$metas->email_ids_created = 0;
|
|
$metas->messages_received = 0;
|
|
foreach ($metas as $key => $meta) {
|
|
if (! Meta::query()->where('key', $key)->exists()) {
|
|
Meta::query()->create([
|
|
'key' => $key,
|
|
'value' => $meta,
|
|
]);
|
|
}
|
|
}
|
|
}
|
|
}
|