otentikasi dan otorisasi

This commit is contained in:
2026-02-22 16:46:44 +07:00
parent b359110c37
commit 5891128b8e
9 changed files with 74 additions and 29 deletions
@@ -4,11 +4,15 @@ namespace App\Http\Controllers\Web;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Gate;
class AkselerasiDashboardController extends Controller
{
public function index()
{
if (!Gate::allows('super_admin') && !Gate::allows('admin')) {
abort(403);
}
return view('dashboard.akselerasi');
}
}