The bcrypt function hashes the given value using Bcrypt. You may use this function as an alternative to the Hash facade:
<?php $password = bcrypt('my-secret-password');
<?php         $this->assertNull($user->password());



        $user->data(['password_hash' => bcrypt('secret')]);



        $this->assertNotNull($user->password());

        $this->assertTrue(Hash::check('secret', $user->password()));