I have been trying to use the Hash functionality from the Laravel framework. I have a Laravel TestCase where I check to see if the value of string that is hashed is equal to the correct one. To be more exact I have something like this:
use Illuminate\Support\Facades\Hash;
class SimpleTestCase extends TestCase {
public function testSimple() {
$expected_hash_string = ...; //Some string derived from another source
$hashed_string = Hash::make("my_string");
$this->assertTrue($hashed_string == $expected_hash_string);
}
}
(This is just a very simple example, so it is not runnable)
So here I get an error which says the following:
Fatal error: Call to a member function make() on a non-object in .....
Is there some configuration setting that I am missing here?
Thanks