how to set connection database inside admin panel
I have a design with 2 panel
1.main panel
2.training panel
and want to separated database name but have a same table
please show me how to do that
thx u
2 Replies
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Solved Bro
Im Using bootUsing()
like this
->bootUsing(function (Panel $panel) {
DB::setDefaultConnection('training');
})