Skip to content

Releases: cyrildewit/eloquent-viewable

v7.0.6

06 Apr 02:15

Choose a tag to compare

What's Changed

  • Implicitly marking parameter $collection as nullable is deprecated, the explicit nullable type must be used instead. by @mstnorris in #314

New Contributors

Full Changelog: v7.0.5...v7.0.6

v7.0.5

19 Mar 04:09

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v7.0.4...v7.0.5

v7.0.4

01 Mar 11:32

Choose a tag to compare

Changed

New Contributors

Full Changelog: v7.0.3...v7.0.4

v7.0.3

15 May 14:51

Choose a tag to compare

Fixed

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

v7.0.2

13 Mar 18:44

Choose a tag to compare

What's Changed

New Contributors

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

v7.0.1

14 Apr 12:12

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

Choose a tag to compare

Changed

v6.0.2

02 Jan 15:49
6992944

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

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

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).