Professional RESTful Blog API with Laravel 12 & Social Authentication
Project Description (وصف المشروع)
I engineered a fully functional RESTful API for a blogging platform using Laravel 12 and PHP 8.2. This project demonstrates advanced backend capabilities, including secure authentication, complex database relationships, and strict authorization policies.
The system is designed to serve as a robust backend for any frontend application (React, Vue, or Mobile), ensuring data integrity and secure user interactions.
Key Features (أهم المميزات)
Secure Authentication: Implemented a secure login system using Laravel Sanctum (Token-based) and integrated Social Login (Google) via Laravel Socialite for a seamless user experience.
Content Management (CRUD): Full Create, Read, Update, and Delete operations for Posts, allowing users to manage their content effectively.
Authorization Policies: Utilized Laravel Policies to enforce strict access control, ensuring that users can only modify or delete their own posts.
Interactive Features: Built a commenting system and a tagging system (Many-to-Many relationships) to organize content and engage users.
Testing & Quality: The codebase is tested using Pest PHP to ensure reliability and bug-free operations.
Technical Stack (التقنيات المستخدمة)
Backend Framework: Laravel 12.x
Language: PHP 8.2+
Database: MySQL
Authentication: Laravel Sanctum & Socialite
Testing: Pest PHP
Architecture: RESTful API, MVC Pattern.