Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

790 B
Raw Blame
<?php

declare(strict_types=1);

namespace Database\Seeders;

use App\Actions\User\CreateUser;
use App\Models\User;
use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    public function run(): void
    {
        if (User::query()->exists()) {
            $this->command->info('UserSeeder: a user already exists, skipping.');

            return;
        }

        CreateUser::execute([
            'name' => 'Admin',
            'email' => '[email protected]',
            'password' => 'password',
            'email_verified_at' => now(),
        ]);

        $this->command->info('Admin account created — change the password on first login:');
        $this->command->line('  email:    [email protected]');
        $this->command->line('  password: password');
    }
}