You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
474 B
28 lines
474 B
<?php
|
|
|
|
namespace App\Http\Controllers\Worker;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
|
|
class CommonController extends Controller
|
|
{
|
|
public $guardName = "worker";
|
|
public $worker;
|
|
|
|
public function __construct()
|
|
{
|
|
$worker = $this->guard()->user();
|
|
$this->worker = $worker;
|
|
}
|
|
|
|
public function guard()
|
|
{
|
|
return auth()->guard($this->guardName);
|
|
}
|
|
|
|
public function guardName()
|
|
{
|
|
return $this->guardName;
|
|
}
|
|
}
|