Releases: cyrildewit/eloquent-viewable
Releases · cyrildewit/eloquent-viewable
v7.0.3
v7.0.2
What's Changed
- Laravel 11 support by @janyksteenbeek in #295
- Laravel 11 support - Allow phpunit ^10.0 as dev dependency by @cyrildewit in #297
New Contributors
- @janyksteenbeek made their first contribution in #295
Full Changelog: v7.0.1...v7.0.2
v7.0.0
What's Changed
- Fix CONTRIBUTING.md fix a typo in the phpunit run example by @kudashevs in #269
- Update run-tests.yml by @kudashevs in #270
- fixed deprecated variable in string by @Mahmoud217TR in #280
- [upgrade] Add Laravel 10 support by @cstriuli in #282
- Fix/failing tests Laravel 10 by @blackjak231 in #287
New Contributors
- @kudashevs made their first contribution in #269
- @Mahmoud217TR made their first contribution in #280
- @cstriuli made their first contribution in #282
- @blackjak231 made their first contribution in #287
Full Changelog: v6.1.0...v7.0.1
v6.1.0
v6.0.2
Fixed
- Revert breaking change of
remember
method inViews
contract. The$lifetime
variable has now a default value ofnull
.
v6.0.1
Fixed
- Revert breaking change of
remember
method inViews
class. The$lifetime
variable has now a default value ofnull
.
v6.0.0
Added
- Added
bool
return typehint torecord
method inViews
contract. - Added
void
return typehint todestroy
method inViews
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 globalviews()
function. - Added
bool
return typehint toisCrawler
method inCrawlerDetector
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 methodprotected function createView(): View
. - The
$viewable
argument of theforViewable
method inViews
contract cannot be nullable anymore. - Changed the method arguments of
orderByViews
andorderByUniqueViews
query scope inViewable
contract andInteractsWithViews
trait. - Changed the method arguments of
withViewsCount
query scope inInteractsWithViews
trait. - Added nullable
Period
class typehint to$period
argument ofperiod
method inViews
contract. - Made
$name
argument nullable inViews
contract. - Changed return typehint of
ip
method inVisitor
contract to?string
. - Change
DateTime
typehint toDateTimeInterface
inInvalidPeriod
exception.
Removed
- Removed
lifetime_in_minutes
option from config file.
Fixed
- Fixed
count
method ofViews
class to count all views, including the collections (#241).
v6.0.0-alpha.1
chore: update links
v5.2.1
Changed
- Add support for Laravel 8
v5.2.0
Fixed
- Use
CyrildeWit\EloquentViewable\Contracts\Views
to resolve Views instance from container.