1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Http/Middleware/setDb.php

27 lines
480 B
PHP
Raw Normal View History

<?php
namespace App\Http\Middleware;
use App\Libraries\MultiDB;
use Closure;
class setDb
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (!config('auth.providers.users.driver') == 'eloquent') {
//MultiDB::setDB(auth()->user()->)
}
return $next($request);
}
}