- About
- Features
- Screenshots
- Tech Stack
- Installation
- Usage
- Project Structure
- Routes Overview
- Contributing
- License
Medium Clone is a full-featured blogging platform inspired by Medium.com. Users can create an account, write and publish stories, follow other writers, like posts, and explore content by category. The UI is carefully designed to mirror Medium's clean, content-first reading experience with a responsive layout, sliding sidebar, and elegant typography.
| Feature | Description |
|---|---|
| User Authentication | Register, login, logout, email verification, password reset |
| Profile Management | Edit avatar, name, username, bio, and account settings |
| Post Management | Create, edit, delete stories with TinyMCE rich text editor |
| Post Feed | Paginated feed with category filtering |
| Like System | Ajax-powered clap/like with real-time counter |
| Follow System | Follow/unfollow users with real-time follower count |
| Category Browsing | Filter posts by categories (Technology, Health, Sport, etc.) |
| Reading Time | Auto-calculated read time for each story |
| Public Profiles | View any user's profile, stories, and bio |
| Sliding Sidebar | Medium-like navigation overlay with burger menu |
| Who to Follow | Suggested users sidebar |
| Responsive Design | Mobile-friendly layout with Tailwind CSS |
| Technology | Purpose |
|---|---|
| Laravel 12 | PHP web framework (backend) |
| Tailwind CSS 4 | Utility-first CSS framework |
| Alpine.js 3 | Lightweight JavaScript framework |
| MySQL 8 | Relational database |
| TinyMCE | Rich text editor for story writing |
| Axios | HTTP client for Ajax requests |
| Vite | Frontend build tool |
| Laravel Breeze | Authentication scaffolding |
- PHP 8.2+
- Composer
- Node.js & npm
- MySQL 8+
# 1. Clone the repository
git clone https://github.com/dennyshuda/laravel-medium-clone.git
cd laravel-medium-clone
# 2. Install PHP dependencies
composer install
# 3. Install JavaScript dependencies
npm install
# 4. Copy environment file
cp .env.example .env
# 5. Configure database in .env
# Edit DB_DATABASE, DB_USERNAME, DB_PASSWORD
# 6. Generate application key
php artisan key:generate
# 7. Run database migrations with seeders
php artisan migrate --seed
# 8. Create storage link
php artisan storage:link
# 9. Build frontend assets
npm run build
# 10. Start the development server
php artisan serveNote: The application is configured to run with Laragon out of the box. If using Laragon, simply point your Laragon site to the project folder.
After running php artisan migrate --seed, you can log in with:
| Field | Value |
|---|---|
example@gmail.com |
|
| Password | password |
- Log in to your account
- Click the Write icon in the navigation bar
- Enter your title, select a category, upload a featured image
- Write your content using the TinyMCE editor
- Click Publish
- Visit any user's profile
- Click the Follow button to start following them
- Click again to unfollow
- Click the clap/hand icon on any post to like it
- The count updates in real-time via Ajax
- Click again to unlike
- Use the category tabs at the top of the home page
- Click a category to filter posts
app/
βββ Http/
β βββ Controllers/
β β βββ Auth/ # Authentication controllers
β β βββ CategoryController.php
β β βββ FollowerController.php
β β βββ HomeController.php
β β βββ LikeController.php
β β βββ PostController.php
β β βββ ProfileController.php
β β βββ PublicProfileController.php
β βββ Requests/ # Form request validation
βββ Models/
β βββ Category.php
β βββ Follower.php
β βββ Like.php
β βββ Post.php
β βββ User.php
βββ Providers/
βββ View/Components/
database/
βββ factories/
βββ migrations/
βββ seeders/
βββ DatabaseSeeder.php # Seeds users, categories, and 100 posts
resources/
βββ css/app.css # Custom Tailwind styles
βββ js/ # Alpine.js & Axios setup
βββ views/
βββ auth/ # Login, register, password reset
βββ components/ # Reusable Blade components
βββ home/ # Home page feed
βββ layouts/ # App & guest layouts
βββ post/ # Post CRUD views
βββ profile/ # User profile views
routes/
βββ web.php # Web routes
βββ auth.php # Authentication routes
| Method | URI | Name | Description |
|---|---|---|---|
| GET | / |
home.index |
Home page with post feed |
| GET | /@{username} |
profile.show |
Public user profile |
| GET | /@{username}/about |
profile.about |
User about page |
| GET | /@{username}/lists |
profile.lists |
User stories list |
| GET | /@{username}/{slug} |
post.show |
Single post view |
| POST | /post |
post.store |
Create new post |
| GET | /post/create |
post.create |
Create post form |
| GET/PUT | /post/{post}/edit |
post.edit |
Edit post |
| DELETE | /post/{post}/delete |
post.delete |
Delete post |
| POST | /follow/{user} |
follow |
Follow/unfollow user |
| POST | /like/{post} |
like |
Like/unlike post |
| GET | /category/{category} |
category |
Posts by category |
Contributions are welcome! Feel free to open issues or submit pull requests.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.




