formatting

This commit is contained in:
Denis Duliçi
2020-07-26 19:44:28 +03:00
parent 3573215f0b
commit 7feb9e9081
2 changed files with 7 additions and 9 deletions

View File

@@ -3,18 +3,17 @@
namespace App\Listeners\Auth;
use App\Utilities\Date;
use Illuminate\Auth\Events\Login as ILogin;
use Illuminate\Auth\Events\Login as Event;
class Login
{
/**
* Handle the event.
*
* @param ILogin $event
* @param Event $event
* @return void
*/
public function handle(ILogin $event)
public function handle(Event $event)
{
// Get first company
$company = $event->user->companies()->enabled()->first();

View File

@@ -2,19 +2,18 @@
namespace App\Listeners\Auth;
use Illuminate\Auth\Events\Logout as ILogout;
use Illuminate\Auth\Events\Logout as Event;
class Logout
{
/**
* Handle the event.
*
* @param ILogout $event
* @param Event $event
* @return void
*/
public function handle(ILogout $event)
public function handle(Event $event)
{
session()->forget('company_id');
}
}
}