Merge pull request 'FEAT: Fixed error permission on basic-data Module' (#1) from putrakuningan-patch-1 into master
Reviewed-on: #1
This commit is contained in:
@@ -16,7 +16,10 @@
|
|||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->user = auth()->user();
|
$this->middleware(function ($request, $next) {
|
||||||
|
$this->user = auth()->user();
|
||||||
|
return $next($request);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
|
|||||||
@@ -14,8 +14,12 @@
|
|||||||
{
|
{
|
||||||
protected $user;
|
protected $user;
|
||||||
|
|
||||||
public function __construct(){
|
public function __construct()
|
||||||
$this->user = auth()->user();
|
{
|
||||||
|
$this->middleware(function ($request, $next) {
|
||||||
|
$this->user = auth()->user();
|
||||||
|
return $next($request);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
|
|||||||
@@ -14,8 +14,12 @@
|
|||||||
{
|
{
|
||||||
protected $user;
|
protected $user;
|
||||||
|
|
||||||
public function __construct(){
|
public function __construct()
|
||||||
$this->user = auth()->user();
|
{
|
||||||
|
$this->middleware(function ($request, $next) {
|
||||||
|
$this->user = auth()->user();
|
||||||
|
return $next($request);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
|
|||||||
Reference in New Issue
Block a user