@extends('install.layout', ['currentStep' => 3])
@section('title', 'Run Migrations')
@section('content')
{{-- ── Step header ── --}}
Database Migration
This step will generate the application key, JWT secret, and create all
required database tables.
{{-- ── Success flash ── --}}
@if (session('success'))
@endif
{{-- ── Migration error ── --}}
@error('migration')
Migration failed
{{ $message }}
@enderror
{{-- ── Artisan output (after failed attempt) ── --}}
@if (session('migration_output') && $errors->any())
Output
{{ session('migration_output') }}
@endif
{{-- ── What will happen ── --}}
@foreach ([
['Generate APP_KEY', 'Generates a unique application encryption key and writes it to .env.'],
['Generate JWT_SECRET','Creates the JWT signing secret used to sign customer authentication tokens.'],
['Run Migrations', 'Creates all database tables: operators, users, routers, hotspots, packages, tickets, customers, purchases, payments.'],
] as [$title, $desc])
@endforeach
{{-- ── Warning: safe to re-run ── --}}
Safe to re-run.
Migrations are idempotent — running them again on an existing database
will only apply missing tables.
{{-- ── Actions ── --}}
@endsection
@push('scripts')
@endpush