/
home
/
techb158
/
ileadtechnology.com
/
SSM
/
app
/
Listeners
/
/home/techb158/ileadtechnology.com/SSM/app/Listeners
mkdir
upload
Name
Size
Mode
Actions
UserLoginListener.php
775
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/SSM/app/Listeners/UserLoginListener.php
(775B)
<?php namespace App\Listeners; use App\Events\UserLogin; use Illuminate\Queue\InteractsWithQueue; use App\Repositories\Auth\AuthRepository; use Illuminate\Contracts\Queue\ShouldQueue; use Mint\Service\Repositories\InitRepository; class UserLoginListener { protected $init; protected $auth; /** * Create the event listener. * * @return void */ public function __construct( InitRepository $init, AuthRepository $auth ) { $this->init = $init; $this->auth = $auth; } /** * To check logged in user has preferences associated with it * * @param UserLogin $event * @return void */ public function handle(UserLogin $event) { $this->init->check(); } }
Save
cmd:
run