PHP code example of digitalcloud / testable-event-listener
1. Go to this page and download the library: Download digitalcloud/testable-event-listener 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/ */
digitalcloud / testable-event-listener example snippets
namespace App;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
protected $dispatchesEvents = [
'creating' => \App\Events\UserCreating::class
];
}