Xgenious/ docs

Bookmarks

Save projects and jobs for later reference. Bookmark buttons appear on gig listings alongside report and share buttons.

Purpose

Let users shortlist interesting projects and jobs and return to them later.

Database Schema

bookmarks table:

ColumnTypeNotes
idbigint PK—
user_idbigintThe user who bookmarked
identitybigintFK to project or job
is_project_jobstringproject or job
created_at / updated_attimestamps—

Models

App\Models\Bookmark:

  • Fillable: user_id, identity, is_project_job
  • Relationships: bookmark_project() → Project, bookmark_job() → JobPost

Controllers

Client: App\Http\Controllers\Frontend\Client\BookmarkController Freelancer: App\Http\Controllers\Frontend\Freelancer\BookmarkController

Both implement:

  • bookmark() — Add bookmark (with duplicate check)
  • bookmark_remove() — Remove bookmark (scoped to user)

Routes

MethodURINameRole
POST/bookmark/project-jobbookmarkBoth
POST/bookmark/project-job-removebookmark.removeBoth

Navbar Integration

Bookmark count badge and dropdown list shown in navbar for both client and freelancer views via user-menu-for-nav-03.blade.php.


Last updated: September 2026

Still stuck?
Our support team is ready to help you get set up.
Get support