Dr. Adam Nielsen
1 min readSep 5, 2020

--

Thank you for this awesome idea. I think with your `extend` method your missing a bracket and a semicolon. Also you would need to include `Illuminate\Database\DatabaseManager` and the other dependencies to get it working. But since `DB` is a singleton, could you not load it from the service container and just call extend on the instance? I mean without replacing the entire DatanaseServiceContainer :)

--

--

Dr. Adam Nielsen
Dr. Adam Nielsen

Written by Dr. Adam Nielsen

PHD in math. and Laravel / Vue Full-Stack-Developer

Responses (1)