DEV Community


Posted on • Originally published at on


Count Models and Get Detailed Analytics With Laravisit Package


Laravisit by @ousid is a package to keep track of your pages & understand your audience, by providing a helpful API methods, easy to implement, and easy to use.

Laravisit Logo


You need to know the following:

Why this package?

If you want to keep track of your pages visits, and understand your audience (users), this package is built for you, to save you time and make your development experience simpler.


You can install the package via composer:

composer require coderflexx/laravisit
Enter fullscreen mode Exit fullscreen mode

You can publish the config file with:

vendor:publish --provider="Coderflex\\Laravisit\\LaravisitServiceProvider"
Enter fullscreen mode Exit fullscreen mode

then, run database migration

php artisan migrate
Enter fullscreen mode Exit fullscreen mode

This is the contents of the published config file:

return [
    | User Namespace
    | This value informs Laravist which namespace you will be 
    | selecting to get the user model instance
    | If this value equals to null, "\Coderflex\Laravisit\Models\User" will be used 
    | by default.
    'user_namespace' => "\Coderflex\Laravisit\Models\User",
Enter fullscreen mode Exit fullscreen mode


See more details and use cases on the package docs page.


You can follow the changes on this package by accessing the changelog or the releases


If you want to contribute, feel free to read the CONTRIBUTING guidelines, and make your PR


Today we s learned about Laravisit package, and how to use it. To make our development process easier and save us time.

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesnโ€™t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.