[2026-05-27 22:44:44] local.ERROR: Call to a member function connection() on null {"exception":"[object] (Error(code: 0): Call to a member function connection() on null at D:/Aplikasi/banyal/backend/vendor/illuminate/database/Eloquent/Model.php:1820)
[stacktrace]
#0 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Eloquent/Model.php(1786): Illuminate/Database/Eloquent/Model::resolveConnection(NULL)
#1 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Eloquent/Model.php(1577): Illuminate/Database/Eloquent/Model->getConnection()
#2 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Eloquent/Model.php(1496): Illuminate/Database/Eloquent/Model->newBaseQueryBuilder()
#3 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Eloquent/Model.php(1532): Illuminate/Database/Eloquent/Model->newModelQuery()
#4 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Eloquent/Model.php(1485): Illuminate/Database/Eloquent/Model->newQueryWithoutScopes()
#5 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Eloquent/Model.php(1475): Illuminate/Database/Eloquent/Model->newQuery()
#6 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Eloquent/Model.php(675): Illuminate/Database/Eloquent/Model::query()
#7 D:/Aplikasi/banyal/backend/check_settings.php(7): Illuminate/Database/Eloquent/Model::all()
#8 {main}
"} 
[2026-05-27 22:45:47] local.ERROR: SQLSTATE[42P07]: Duplicate table: 7 ERROR:  relation "product_categories" already exists (Connection: pgsql, SQL: create table "product_categories" ("id" serial not null primary key, "name" varchar(255) not null, "slug" varchar(255) not null, "created_at" timestamp(0) without time zone null, "updated_at" timestamp(0) without time zone null)) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 42P07): SQLSTATE[42P07]: Duplicate table: 7 ERROR:  relation \"product_categories\" already exists (Connection: pgsql, SQL: create table \"product_categories\" (\"id\" serial not null primary key, \"name\" varchar(255) not null, \"slug\" varchar(255) not null, \"created_at\" timestamp(0) without time zone null, \"updated_at\" timestamp(0) without time zone null)) at D:/Aplikasi/banyal/backend/vendor/illuminate/database/Connection.php:829)
[stacktrace]
#0 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Connection.php(783): Illuminate/Database/Connection->runQueryCallback('create table \"p...', Array, Object(Closure))
#1 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Connection.php(576): Illuminate/Database/Connection->run('create table \"p...', Array, Object(Closure))
#2 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Schema/Blueprint.php(110): Illuminate/Database/Connection->statement('create table \"p...')
#3 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Schema/Builder.php(602): Illuminate/Database/Schema/Blueprint->build(Object(Illuminate/Database/PostgresConnection), Object(Illuminate/Database/Schema/Grammars/PostgresGrammar))
#4 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Schema/Builder.php(456): Illuminate/Database/Schema/Builder->build(Object(Illuminate/Database/Schema/Blueprint))
#5 D:/Aplikasi/banyal/backend/vendor/illuminate/support/Facades/Facade.php(355): Illuminate/Database/Schema/Builder->create('product_categor...', Object(Closure))
#6 D:/Aplikasi/banyal/backend/database/migrations/2026_04_08_000000_create_product_categories_table.php(11): Illuminate/Support/Facades/Facade::__callStatic('create', Array)
#7 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(501): CreateProductCategoriesTable->up()
#8 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(418): Illuminate/Database/Migrations/Migrator->runMethod(Object(Illuminate/Database/PostgresConnection), Object(CreateProductCategoriesTable), 'up')
#9 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Concerns/ManagesTransactions.php(30): Illuminate/Database/Migrations/Migrator->Illuminate/Database/Migrations/{closure}(Object(Illuminate/Database/PostgresConnection))
#10 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(426): Illuminate/Database/Connection->transaction(Object(Closure))
#11 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(224): Illuminate/Database/Migrations/Migrator->runMigration(Object(CreateProductCategoriesTable), 'up')
#12 D:/Aplikasi/banyal/backend/vendor/illuminate/console/View/Components/Task.php(37): Illuminate/Database/Migrations/Migrator->Illuminate/Database/Migrations/{closure}()
#13 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(783): Illuminate/Console/View/Components/Task->render('2026_04_08_0000...', Object(Closure))
#14 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(224): Illuminate/Database/Migrations/Migrator->write('Illuminate//Cons...', '2026_04_08_0000...', Object(Closure))
#15 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(189): Illuminate/Database/Migrations/Migrator->runUp('D://Aplikasi//ban...', 1000, false)
#16 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(132): Illuminate/Database/Migrations/Migrator->runPending(Array, Array)
#17 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Console/Migrations/MigrateCommand.php(90): Illuminate/Database/Migrations/Migrator->run(Array, Array)
#18 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(641): Illuminate/Database/Console/Migrations/MigrateCommand->Illuminate/Database/Console/Migrations/{closure}()
#19 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Console/Migrations/MigrateCommand.php(83): Illuminate/Database/Migrations/Migrator->usingConnection(NULL, Object(Closure))
#20 D:/Aplikasi/banyal/backend/vendor/illuminate/container/BoundMethod.php(36): Illuminate/Database/Console/Migrations/MigrateCommand->handle()
#21 D:/Aplikasi/banyal/backend/vendor/illuminate/container/Util.php(41): Illuminate/Container/BoundMethod::Illuminate/Container/{closure}()
#22 D:/Aplikasi/banyal/backend/vendor/illuminate/container/BoundMethod.php(93): Illuminate/Container/Util::unwrapIfClosure(Object(Closure))
#23 D:/Aplikasi/banyal/backend/vendor/illuminate/container/BoundMethod.php(35): Illuminate/Container/BoundMethod::callBoundMethod(Object(Laravel/Lumen/Application), Array, Object(Closure))
#24 D:/Aplikasi/banyal/backend/vendor/illuminate/container/Container.php(662): Illuminate/Container/BoundMethod::call(Object(Laravel/Lumen/Application), Array, Array, NULL)
#25 D:/Aplikasi/banyal/backend/vendor/illuminate/console/Command.php(211): Illuminate/Container/Container->call(Array)
#26 D:/Aplikasi/banyal/backend/vendor/symfony/console/Command/Command.php(326): Illuminate/Console/Command->execute(Object(Symfony/Component/Console/Input/ArgvInput), Object(Illuminate/Console/OutputStyle))
#27 D:/Aplikasi/banyal/backend/vendor/illuminate/console/Command.php(180): Symfony/Component/Console/Command/Command->run(Object(Symfony/Component/Console/Input/ArgvInput), Object(Illuminate/Console/OutputStyle))
#28 D:/Aplikasi/banyal/backend/vendor/symfony/console/Application.php(1098): Illuminate/Console/Command->run(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#29 D:/Aplikasi/banyal/backend/vendor/symfony/console/Application.php(324): Symfony/Component/Console/Application->doRunCommand(Object(Illuminate/Database/Console/Migrations/MigrateCommand), Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#30 D:/Aplikasi/banyal/backend/vendor/symfony/console/Application.php(175): Symfony/Component/Console/Application->doRun(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#31 D:/Aplikasi/banyal/backend/vendor/laravel/lumen-framework/src/Console/Kernel.php(160): Symfony/Component/Console/Application->run(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#32 D:/Aplikasi/banyal/backend/artisan(35): Laravel/Lumen/Console/Kernel->handle(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#33 {main}

[previous exception] [object] (PDOException(code: 42P07): SQLSTATE[42P07]: Duplicate table: 7 ERROR:  relation \"product_categories\" already exists at D:/Aplikasi/banyal/backend/vendor/illuminate/database/Connection.php:587)
[stacktrace]
#0 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Connection.php(587): PDOStatement->execute()
#1 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Connection.php(816): Illuminate/Database/Connection->Illuminate/Database/{closure}('create table \"p...', Array)
#2 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Connection.php(783): Illuminate/Database/Connection->runQueryCallback('create table \"p...', Array, Object(Closure))
#3 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Connection.php(576): Illuminate/Database/Connection->run('create table \"p...', Array, Object(Closure))
#4 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Schema/Blueprint.php(110): Illuminate/Database/Connection->statement('create table \"p...')
#5 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Schema/Builder.php(602): Illuminate/Database/Schema/Blueprint->build(Object(Illuminate/Database/PostgresConnection), Object(Illuminate/Database/Schema/Grammars/PostgresGrammar))
#6 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Schema/Builder.php(456): Illuminate/Database/Schema/Builder->build(Object(Illuminate/Database/Schema/Blueprint))
#7 D:/Aplikasi/banyal/backend/vendor/illuminate/support/Facades/Facade.php(355): Illuminate/Database/Schema/Builder->create('product_categor...', Object(Closure))
#8 D:/Aplikasi/banyal/backend/database/migrations/2026_04_08_000000_create_product_categories_table.php(11): Illuminate/Support/Facades/Facade::__callStatic('create', Array)
#9 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(501): CreateProductCategoriesTable->up()
#10 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(418): Illuminate/Database/Migrations/Migrator->runMethod(Object(Illuminate/Database/PostgresConnection), Object(CreateProductCategoriesTable), 'up')
#11 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Concerns/ManagesTransactions.php(30): Illuminate/Database/Migrations/Migrator->Illuminate/Database/Migrations/{closure}(Object(Illuminate/Database/PostgresConnection))
#12 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(426): Illuminate/Database/Connection->transaction(Object(Closure))
#13 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(224): Illuminate/Database/Migrations/Migrator->runMigration(Object(CreateProductCategoriesTable), 'up')
#14 D:/Aplikasi/banyal/backend/vendor/illuminate/console/View/Components/Task.php(37): Illuminate/Database/Migrations/Migrator->Illuminate/Database/Migrations/{closure}()
#15 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(783): Illuminate/Console/View/Components/Task->render('2026_04_08_0000...', Object(Closure))
#16 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(224): Illuminate/Database/Migrations/Migrator->write('Illuminate//Cons...', '2026_04_08_0000...', Object(Closure))
#17 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(189): Illuminate/Database/Migrations/Migrator->runUp('D://Aplikasi//ban...', 1000, false)
#18 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(132): Illuminate/Database/Migrations/Migrator->runPending(Array, Array)
#19 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Console/Migrations/MigrateCommand.php(90): Illuminate/Database/Migrations/Migrator->run(Array, Array)
#20 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Migrations/Migrator.php(641): Illuminate/Database/Console/Migrations/MigrateCommand->Illuminate/Database/Console/Migrations/{closure}()
#21 D:/Aplikasi/banyal/backend/vendor/illuminate/database/Console/Migrations/MigrateCommand.php(83): Illuminate/Database/Migrations/Migrator->usingConnection(NULL, Object(Closure))
#22 D:/Aplikasi/banyal/backend/vendor/illuminate/container/BoundMethod.php(36): Illuminate/Database/Console/Migrations/MigrateCommand->handle()
#23 D:/Aplikasi/banyal/backend/vendor/illuminate/container/Util.php(41): Illuminate/Container/BoundMethod::Illuminate/Container/{closure}()
#24 D:/Aplikasi/banyal/backend/vendor/illuminate/container/BoundMethod.php(93): Illuminate/Container/Util::unwrapIfClosure(Object(Closure))
#25 D:/Aplikasi/banyal/backend/vendor/illuminate/container/BoundMethod.php(35): Illuminate/Container/BoundMethod::callBoundMethod(Object(Laravel/Lumen/Application), Array, Object(Closure))
#26 D:/Aplikasi/banyal/backend/vendor/illuminate/container/Container.php(662): Illuminate/Container/BoundMethod::call(Object(Laravel/Lumen/Application), Array, Array, NULL)
#27 D:/Aplikasi/banyal/backend/vendor/illuminate/console/Command.php(211): Illuminate/Container/Container->call(Array)
#28 D:/Aplikasi/banyal/backend/vendor/symfony/console/Command/Command.php(326): Illuminate/Console/Command->execute(Object(Symfony/Component/Console/Input/ArgvInput), Object(Illuminate/Console/OutputStyle))
#29 D:/Aplikasi/banyal/backend/vendor/illuminate/console/Command.php(180): Symfony/Component/Console/Command/Command->run(Object(Symfony/Component/Console/Input/ArgvInput), Object(Illuminate/Console/OutputStyle))
#30 D:/Aplikasi/banyal/backend/vendor/symfony/console/Application.php(1098): Illuminate/Console/Command->run(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#31 D:/Aplikasi/banyal/backend/vendor/symfony/console/Application.php(324): Symfony/Component/Console/Application->doRunCommand(Object(Illuminate/Database/Console/Migrations/MigrateCommand), Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#32 D:/Aplikasi/banyal/backend/vendor/symfony/console/Application.php(175): Symfony/Component/Console/Application->doRun(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#33 D:/Aplikasi/banyal/backend/vendor/laravel/lumen-framework/src/Console/Kernel.php(160): Symfony/Component/Console/Application->run(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#34 D:/Aplikasi/banyal/backend/artisan(35): Laravel/Lumen/Console/Kernel->handle(Object(Symfony/Component/Console/Input/ArgvInput), Object(Symfony/Component/Console/Output/ConsoleOutput))
#35 {main}
"} 
