laravel-coinpayments icon indicating copy to clipboard operation
laravel-coinpayments copied to clipboard

Transactions table doesnt exist

Open justdick opened this issue 2 years ago • 1 comments

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

justdick avatar Oct 07 '22 03:10 justdick

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_

justdick avatar Oct 07 '22 15:10 justdick