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.

29 lines
487 B

5 years ago
<?php
namespace App\Http\Controllers\Customer;
use App\Http\Controllers\Controller;
class CommonController extends Controller
{
public $guardName = "customer";
public $customer;
public function __construct()
{
$customer = $this->guard()->user();
$this->customer = $customer;
}
public function guard()
{
return auth()->guard($this->guardName);
}
public function guardName()
{
return $this->guardName;
}
}