承接 nickdekruijk/laravel-visitors 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nickdekruijk/laravel-visitors

最新稳定版本:0.5.1

Composer 安装命令:

composer require nickdekruijk/laravel-visitors

包简介

A simple, privacy friendly visitor tracking for Laravel applications.

README 文档

README

A simple, privacy friendly visitor tracking for Laravel applications.

Installation

Begin by installing this package with composer.

composer require nickdekruijk/laravel-visitors

Configuration

Publish the config file if the defaults doesn't suite your needs:

php artisan vendor:publish --provider="NickDeKruijk\LaravelVisitors\ServiceProvider"

Separate databases

You might want to separate the visitors database from the main application database for performance or to avoid conflicts. Add a new connection in your config/database.php connections array for example:

        'visitors' => [
            'driver' => 'sqlite',
            'database' => database_path('visitors.sqlite'),
        ],

And change db_connection configuration in the config/visitors.php file or add VISITORS_DB_CONNECTION in your .env file.

Include tracker

Add @include('laravel-visitors::track') inside your view, a good spot might be directly after the <head> tag in your app.blade.php layout file, for example:

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

    <head>
        @include('laravel-visitors::track')
        <meta charset="utf-8">

统计信息

  • 总下载量: 108
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固