- Added `mary.php` configuration file for customizable component and route prefixes. - Upgraded `livewire/livewire` to v4.3 and added `robsontenorio/mary` v2.8 for maryUI support. - Updated `ConnectedApps` component to fetch data dynamically via `ConnectedAppService`. - Replaced static services with computed properties and streamlined data mappings in templates. - Enhanced frontend styling with `daisyUI` and TailwindCSS v4.3 integration. - Improved user feedback in `ConnectedAppForm` with success/error toasts.
26 lines
558 B
PHP
26 lines
558 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Enums\ConnectionProtocolEnum;
|
|
use App\Models\ConnectionProtocol;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
final class ConnectionProtocolSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$data = array_map(fn ($value) => [
|
|
'name' => $value,
|
|
'created_at' => now(),
|
|
], ConnectionProtocolEnum::values());
|
|
ConnectionProtocol::query()
|
|
->upsert($data, 'name', ['updated_at']);
|
|
}
|
|
}
|