laravel-coinpayments
laravel-coinpayments copied to clipboard
Transactions table doesnt exist
i get this error when i initiate createTransactionSimple Illuminate\Database\QueryException with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dname.cp_cp_transactions' doesn't exist. Meanwhile table prefix is only cp_ in config and .env file
i had to make a lil changes at config, env, and helpers,php
i deleted the COINPAYMENTS_DB_PREFIX from env and changes database_prefix to database_prefix' => env('COINPAYMENTS_DB_PREFIX', '')
then i again return 'cp_
instead of return cp_conf('database_prefix')
in the function cp_table_prefix ()
at helpers.php file
so currently db prefix id cp_cp_ instead of cp_