FEAT: Fixed error permission on basic-data Module

This commit is contained in:
Sholahuddin Al Ayubi
2025-06-20 14:59:19 +07:00
parent 89f5fedfd6
commit 05ceb5ef01
3 changed files with 16 additions and 5 deletions

View File

@@ -16,7 +16,10 @@
public function __construct()
{
$this->middleware(function ($request, $next) {
$this->user = auth()->user();
return $next($request);
});
}
public function index()

View File

@@ -14,8 +14,12 @@
{
protected $user;
public function __construct(){
public function __construct()
{
$this->middleware(function ($request, $next) {
$this->user = auth()->user();
return $next($request);
});
}
public function index()

View File

@@ -14,8 +14,12 @@
{
protected $user;
public function __construct(){
public function __construct()
{
$this->middleware(function ($request, $next) {
$this->user = auth()->user();
return $next($request);
});
}
public function index()