Account Setup
**Package:** olakunlevpn/laravel-installer-account
Adds a step to create the admin user during installation.

#Install
composer require olakunlevpn/laravel-installer-account
Done. The step registers automatically.
#Requirements
Your users table needs these columns:
Schema::create('users', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('email')->unique(); $table->string('password'); $table->string('role')->default('user'); // optional $table->timestamps();});
Laravel's default migration already has name, email, and password.
Just add role if you want role assignment.
#Configuration
Only needed if changing defaults.
**Publish config:**
php artisan vendor:publish --tag=laravel-installer-account-config
**Config file** (config/installer-account.php):
return [ // Step position (default: 5) 'step_position' => env('ACCOUNT_STEP_POSITION', 5), // Default role for admin (set to null to skip) 'default_role' => env('ACCOUNT_DEFAULT_ROLE', 'admin'), // Column name for role 'role_column' => 'role',];
**Environment variables:**
ACCOUNT_STEP_POSITION=5ACCOUNT_DEFAULT_ROLE=admin
#Role types
**String role:**
// Migration$table->string('role')->default('user'); // Config'default_role' => 'admin',
**Integer role_id:**
// Migration$table->foreignId('role_id')->constrained(); // Config'default_role' => 1,'role_column' => 'role_id',
**No role:**
// Config'default_role' => null,
#License integration
If you also install the license package, the email field auto-fills from the license step.
composer require olakunlevpn/laravel-installer-licensecomposer require olakunlevpn/laravel-installer-account
Set positions so license comes first:
LICENSE_STEP_POSITION=2ACCOUNT_STEP_POSITION=5
#Customize views
**Publish views:**
php artisan vendor:publish --tag=laravel-installer-account-views
Edit in resources/views/vendor/account/.
#Translate text
**Publish translations:**
php artisan vendor:publish --tag=laravel-installer-account-translations
Edit in lang/en/account.php.
#Events
Listen to account events in app/Providers/EventServiceProvider.php:
protected $listen = [ \Olakunlevpn\InstallerAccount\Events\AccountCreated::class => [ \App\Listeners\SendWelcomeEmail::class, ],];
#Next
- Install License Verification
- Build your own: Plugin Guide