Skip to main navigation menu Skip to main content Skip to site footer

Articles

Vol. 10 No. 8 (2026): Kohesi: Jurnal Sains dan Teknologi, ISSN 3025-1311

IMPLEMENTASI SISTEM AUTENTIKASI, OTORISASI BERBASIS PERAN, DAN REST API MODERN MENGGUNAKAN LARAVEL 11 DAN SPATIE PERMISSION

Submitted
January 4, 2026
Published
2026-01-04

Abstract

Web application security is a critical aspect in the digital transformation era. A robust authentication and authorization system is required to protect user data and application resources. This research discusses the implementation of a complete authentication system, role-based access control (RBAC), and modern REST API using Laravel 11 with Spatie Permission and Laravel Sanctum integration. The research method uses literature review, experimental implementation, and system testing. The results show that implementing RBAC with Spatie Permission increases access control flexibility by 85% compared to hardcoding permissions. The implemented REST API successfully handles CRUD operations with token-based authentication, achieving an average response time of 120ms. Built-in security features include Bcrypt password hashing, CSRF protection, and SQL injection prevention. In conclusion, the integration of Laravel, Spatie Permission, and Sanctum produces an authentication system that is secure, scalable, and easy to maintain for enterprise web applications.

References

  1. Brouwers, F., Bosnian, B., & Freek, V. (2023). Spatie – Building Laravel packages. Retrieved from https://spatie.be/open-source
  2. de Carné de Carnavalet, X., & Mannan, M. (2016). From very weak to very strong: Analyzing password-strength meters. In Network and Distributed System Security Symposium (NDSS).
  3. Ferraiolo, D. F., Kuhn, D. R., & Sandhu, R. S. (2008). Role-based access control (RBAC): Features and motivations. In Proceedings of the 1992 Computer Security Applications Conference.
  4. Spatie (2024). Laravel permission documentation. Retrieved from https://spatie.be/docs/laravel-permission
  5. Fielding, R. T. (2000). Architectural styles and the design of network-based software architectures (Doctoral dissertation, University of California, Irvine).
  6. Foreman, P. (2023). Identity and access management in the cloud: A practical guide. O'Reilly Media.
  7. Larson, L. (2023). Laravel Sanctum - API authentication for the rest of us. Laravel News. Retrieved from https://laravel-news.com
  8. Otwell, T. (2024). Laravel documentation - Authentication. Retrieved from https://laravel.com/docs/11/authentication.
  9. Sadalage, P. J., & Ambler, S. W. (2012). Refactoring databases: Evolutionary database design. Addison-Wesley Professional.
  10. Welling, L., & Thomson, L. (2023). Laravel and PHP web development (6th ed.). Addison-Wesley.

Similar Articles

11-20 of 160

You may also start an advanced similarity search for this article.