Skip to content

Releases: cyrildewit/eloquent-viewable

v7.0.3

15 May 14:51
Compare
Choose a tag to compare

Fixed

Full Changelog: v7.0.2...v7.0.3

v7.0.2

13 Mar 18:44
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v7.0.1...v7.0.2

v7.0.0

14 Apr 12:12
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.1.0...v7.0.1

v6.1.0

28 Feb 15:20
b661b45
Compare
Choose a tag to compare

Changed

v6.0.2

02 Jan 15:49
6992944
Compare
Choose a tag to compare

Fixed

  • Revert breaking change of remember method in Views contract. The $lifetime variable has now a default value of null.

v6.0.1

02 Jan 15:18
5747def
Compare
Choose a tag to compare

Fixed

  • Revert breaking change of remember method in Views class. The $lifetime variable has now a default value of null.

v6.0.0

30 Dec 12:26
fd5fc3d
Compare
Choose a tag to compare

Added

  • Added bool return typehint to record method in Views contract.
  • Added void return typehint to destroy method in Views contract.
  • The ViewRecordException will be thrown when trying to record a view for a viewable type.
  • The ViewRecorded event will be fired when a new view is recorded.
  • Added Views typehint to global views() function.
  • Added bool return typehint to isCrawler method in CrawlerDetector contract.

Changed

  • Set required PHP versions in composer.json to ^7.4|^8.0.
  • The creating of the View instance has been moved into its own method protected function createView(): View.
  • The $viewable argument of the forViewable method in Views contract cannot be nullable anymore.
  • Changed the method arguments of orderByViews and orderByUniqueViews query scope in Viewable contract and InteractsWithViews trait.
  • Changed the method arguments of withViewsCount query scope in InteractsWithViews trait.
  • Added nullable Period class typehint to $period argument of period method in Views contract.
  • Made $name argument nullable in Views contract.
  • Changed return typehint of ip method in Visitor contract to ?string.
  • Change DateTime typehint to DateTimeInterface in InvalidPeriod exception.

Removed

  • Removed lifetime_in_minutes option from config file.

Fixed

  • Fixed count method of Views class to count all views, including the collections (#241).

v6.0.0-alpha.1

28 Dec 16:15
Compare
Choose a tag to compare
v6.0.0-alpha.1 Pre-release
Pre-release
chore: update links

v5.2.1

22 Sep 15:14
7752049
Compare
Choose a tag to compare

Changed

  • Add support for Laravel 8

v5.2.0

28 Mar 14:04
Compare
Choose a tag to compare

Fixed

  • Use CyrildeWit\EloquentViewable\Contracts\Views to resolve Views instance from container.