DEV Community

Oussama
Oussama

Posted on • Originally published at coderflex.com on

Count Models and Get Detailed Analytics With Laravisit Package

Introduction

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

Prerequisite

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.

Installation

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

Usage

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

Changelog

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

Contributing

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

Conclusion

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)