Menu

Post image 1
Post image 2
1 / 2
0

Durjay Views A Simple Laravel View Counter Package

DEV Community·Durjay Ghosh·24 days ago
#8j1e4CeU
Reading 0:00
15s threshold

Introducing Durjay Views — A Simple Laravel View Counter Package Tracking views in a Laravel application should be simple, flexible, and developer-friendly. That’s why I built Durjay Views — a lightweight Laravel package for counting views on blogs, products, services, or any model with minimal setup. GitHub Repository: https://github.com/durjaygp/durjay-views ✨ Features Simple Laravel view tracking Track views using a helper function Trait-based model integration Supports Blogs, Products, Services, and custom entities Stores everything in a single database table Tailwind CSS statistics dashboard Unique visitor tracking 7-day views chart Recent activity table Easy customization 📦 Installation Install the package via Composer: composer require durjaygp/durjay-views Enter fullscreen mode Exit fullscreen mode ` Publish migrations and views: bash php artisan vendor:publish --provider="Durjaygp\DurjayViews\DurjayViewsServiceProvider" Run migrations: bash php artisan migrate 🚀 Usage Option 1: Using the Helper…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More