formatting
This commit is contained in:
@@ -3,18 +3,17 @@
|
|||||||
namespace App\Listeners\Auth;
|
namespace App\Listeners\Auth;
|
||||||
|
|
||||||
use App\Utilities\Date;
|
use App\Utilities\Date;
|
||||||
use Illuminate\Auth\Events\Login as ILogin;
|
use Illuminate\Auth\Events\Login as Event;
|
||||||
|
|
||||||
class Login
|
class Login
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle the event.
|
* Handle the event.
|
||||||
*
|
*
|
||||||
* @param ILogin $event
|
* @param Event $event
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle(ILogin $event)
|
public function handle(Event $event)
|
||||||
{
|
{
|
||||||
// Get first company
|
// Get first company
|
||||||
$company = $event->user->companies()->enabled()->first();
|
$company = $event->user->companies()->enabled()->first();
|
||||||
|
|||||||
@@ -2,19 +2,18 @@
|
|||||||
|
|
||||||
namespace App\Listeners\Auth;
|
namespace App\Listeners\Auth;
|
||||||
|
|
||||||
use Illuminate\Auth\Events\Logout as ILogout;
|
use Illuminate\Auth\Events\Logout as Event;
|
||||||
|
|
||||||
class Logout
|
class Logout
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle the event.
|
* Handle the event.
|
||||||
*
|
*
|
||||||
* @param ILogout $event
|
* @param Event $event
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle(ILogout $event)
|
public function handle(Event $event)
|
||||||
{
|
{
|
||||||
session()->forget('company_id');
|
session()->forget('company_id');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user