承接 taymaz/laravel-visitcounter 相关项目开发

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

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

taymaz/laravel-visitcounter

最新稳定版本:1.0

Composer 安装命令:

composer require taymaz/laravel-visitcounter

包简介

laravel package to count pages and posts visits

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

screenshot

laravel-visitcounter

laravel package to count pages and posts visits

Install

From your terminal:

composer require taymaz/laravel-visitcounter

This starts to install laravel-visitcounter package its working with composer so you can use it to easy.

Basic use

for starting you need to create a file named config to setup backup options like directories and backup export path and ...

First publish package service provider

You have to this part of code in config/app.php

Taymaz\Visitcounter\VisitCounterServiceProvider::class,

then set middleware

package provide middleware to count each visits from your particular route./n example:

Route::get('/hello', [HelloWorld::class, 'hello'])->middleware('visitcount');

give middleware visitcount \n it can handle uri passed parameters.

get visits result

have easy acess for route visits in your controller.

public function hello(Request $request){
    $request->input('views'); //465
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-10