雄辩可见:将视图与Laravel中雄辩模型相关联

时间:2024-02-23 19:16:49
【文件属性】:

文件名称:雄辩可见:将视图与Laravel中雄辩模型相关联

文件大小:23KB

文件格式:ZIP

更新时间:2024-02-23 19:16:49

php counter laravel views laravel-package

雄辩可见 这个Laravel> = 6.0软件包允许您将视图与Eloquent模型相关联。 安装后,您可以执行以下操作: // Return total views count views ( $ post )-> count (); // Return total views count that have been made since 20 February 2017 views ( $ post )-> period ( Period :: since ( '2017-02-20' ))-> count (); // Return total views count that have been made between 2014 and 216 views ( $ post )-> period ( Period :: create ( '2014' , '2016' ))-> count (); // Return total unique views count (based on visitor cookie) views ( $ post )-> unique


【文件预览】:
eloquent-viewable-master
----composer.json(2KB)
----config()
--------eloquent-viewable.php(3KB)
----UPGRADING.md(11KB)
----LICENSE(1KB)
----src()
--------EloquentViewableServiceProvider.php(2KB)
--------CooldownManager.php(3KB)
--------ViewableObserver.php(903B)
--------ViewsFacade.php(483B)
--------helpers.php(745B)
--------Exceptions()
--------Support()
--------InteractsWithViews.php(3KB)
--------CrawlerDetectAdapter.php(544B)
--------CacheKey.php(3KB)
--------Visitor.php(3KB)
--------Contracts()
--------View.php(3KB)
--------Views.php(8KB)
--------Events()
----migrations()
--------create_views_table.php.stub(1KB)
----.gitignore(49B)

网友评论