Skip to content

abbasfisal/Laravel-Story-Web-Application

Repository files navigation

Simple Story Laravel Web Application API

THis project built with laravel v.9

without any front end

Here You Can Download This Project postMan Collection

Database

Users Table

# Title Description
1 name
2 email must be unique
3 username must be unique
4 type default user type is user
5 avatar user profile image
6 password

Categories Table

# Title Description
1 title must be unique

Stories Table

# Title Description
1 user_id users table Fk
2 category_id categories table Fk
3 title category title

Story_likes Table

# Title Description
1 user_id users table Fk
2 story_id stories table Fk

Comments Table

# Title Description
1 user_id users table Fk
2 parent_id used for Replying System
3 text user comment text
4 commentable_id for store stories fk
1 commentable_type for store Model Class Name for example => `App\Models

Followers Table

# Title Description
1 follower_id (followers) users table Fk
1 following_id (following) users table Fk

Login / Register 🔑

In This Project Used Sanctum Package

  • Register Requirements
    1. email 📧
    2. password 🗝️
    3. avatar 👱‍♂️

User Types 🕵️‍♂️

  1. Admin (Administrator)
  2. User (Normal user)

After Seeding Database There will be 2 users type and Categories Dummy Data

# email password type
1 admin@a.b 123456 admin
2 alireza@a.b 123456 user

Admin 👨‍💻

  • Abilities
    1. Create categories
    2. See users
    3. See users with thier Stories
    4. See Single User Story With its Comments

User 🙋‍♂️

  • user abilities
    1. Create Stories

    2. Send Comment to a Story

    3. Reply To a Comment

    4. Follow Users

    5. See Follower List

    6. See Following List

    7. Like a Story

    8. See All Liked Stories

    9. Seeing own Stories

Home Page 🏚️

  • Home Abilities
    1. See 10 Latest Users Stories
    2. Show Number Of Comments for Each Story
    3. Show Single Story With its Comments
    4. See a User Stories List
    5. Get Stories By Category

Todo

  • Must Implement Edit Section
  • Must Implement Delete Section

Releases

No releases published

Packages

No packages published

Languages