I'm trying to call Active::route('routename') in my view and get:
Non-static method HieuLe\Active\Active::route() should not be called statically, assuming $this from incompatible context ...
I tried to just rewrite the functions with static methods but that led to the router needing to be instantiated so I wasn't sure what to do from there.
To use methods statically, you have to add the alias to the right Facade class as in the read me file. From your log, I see that the route method is called in the wrong class.
I'm trying to call
Active::route('routename')
in my view and get:Non-static method HieuLe\Active\Active::route() should not be called statically, assuming $this from incompatible context ...
I tried to just rewrite the functions with static methods but that led to the router needing to be instantiated so I wasn't sure what to do from there.