Laravel Auth/Roles REST API MySQL

KotobHub

Digital Library Platform

KotobHub — Digital Library UI

Overview

A full-featured digital library where users can browse, read, and download books with role-based access control.


The Problem

A local community library had thousands of digital books with no organized public access system.

The Solution

Developed a Laravel platform with categorized collections, user auth, reading history, and an admin panel for content management.


Key Features

  • Role-Based Access

    Admin, Librarian, and Reader roles with different permissions

  • Book Catalog

    Browse by category, author, or search with filters

  • Online Reader

    Read PDF/ePub books directly in the browser

  • REST API

    Full API for potential mobile app integration

  • Reading History

    Track user reading progress and history

  • Admin Panel

    CRUD operations for books, authors, and users


Tech Stack

Laravel 11

Backend

MySQL

Database

Laravel Sanctum

API Auth

Blade + Tailwind

Frontend

Spatie Roles

Permissions

Postman

API Testing


Screenshots

Book Catalog
Reader View
Admin Panel

Challenges

  • Designing a flexible roles & permissions system that could handle future role additions without code changes.
  • Secure file serving for PDF books — ensuring only authorized users can access protected content.
  • Building an in-browser PDF reader that works smoothly without heavy JavaScript frameworks.

Need a platform like this?

I can build custom web platforms tailored to your exact needs.