Manipulation of tables created by boddypress
CaiosCarvalho opened this issue · comments
- Corcel Version: 7.0
- Framework Name & Version: Larvevel 7.0
- PHP Version: 7.0
- Database Driver & Version: MySql 7
Description:
Hi
I have a project that uses buddypress, he create some tables in the database as wp_bp_friendes for friends. I need access to these tables to have other features in the app. Corcel have access to these tables created by plugins?
Steps To Reproduce:
You can access any table by using the DB facade:
$data = \Illuminate\Support\Facades\DB::connection('connection_name')->table('table_name')->get();
Or you can add a custom model (but remember to set the $table
and $connection
properties on the model if the model name does not follow Laravel's naming convention or you are not using the default database connection).