PHP code example of mccahan / laravel-auto-rehash

1. Go to this page and download the library: Download mccahan/laravel-auto-rehash library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mccahan / laravel-auto-rehash example snippets


use McCahan\LaravelAutoRehash\Events\ValidUserCredentials;

// Announce that we have some valid credentials in hand for a valid user
event(new ValidUserCredentials($user, $request->get('password')));