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:
putrakuningan
2025-06-21 11:29:21 +07:00
3 changed files with 16 additions and 5 deletions

View File

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

View File

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

View File

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