Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Ownership Laravel Package

cybercog/laravel-ownership

View on GitHub
Deep Wiki
Context7
5.3.0

Added

  • (#22) Added Laravel 6.x support
  • (#22) Added Laravel 7.x support
  • (#22) Added Laravel 8.x support
  • (#23) Added PHP 8.x support

Removed

  • (#23) Dropped PHP 5.6 support
  • (#23) Dropped PHP 7.0 support
5.2.1

README changes

5.2.0

Added

  • Laravel 5.7 support

View the changes from 5.1.0 to 5.2.0

5.1.0

Added

  • Laravel 5.6 support

View the changes from 5.0.0 to 5.1.0

5.0.0

Changed

  • Contracts namespace changed from Cog\Contracts\Laravel\Ownership to Cog\Contracts\Ownership

Fixed

  • Service Provider auto-discovery

View the changes from 4.0.0 to 5.0.0

4.0.0

Added

  • Ownable models got new isOwnedByDefaultOwner method which automatically try to resolve current user.

Changed

  • Contracts namespace changed from Cog\Ownership\Contracts to Cog\Contracts\Laravel\Ownership
  • Classes namespace changed from Cog\Ownership to Cog\Laravel\Ownership
  • ModelObserver renamed to OwnableObserver
  • HasOwner contract renamed to Ownable

View the changes from 3.1.0 to 4.0.0

3.1.0

Added

  • Laravel 5.5 support
  • Service Provider auto-discovery

View the changes from 3.0.0 to 3.1.0

3.0.0

Changed

  • Default database column used by models with strict ownership was renamed from owned_by to owned_by_id.

View the changes from 2.2.0 to 3.0.0

2.2.0

Added

  • owner() alias for method ownedBy()
  • Laravel 5.4 support

View the changes from 2.1.0 to 2.2.0

2.1.0

Added

  • isNotOwnedBy($owner) to check if model not owned by concrete owner.

View the changes from 2.0.0 to 2.1.0

2.0.0

Added

  • withDefaultOwner() set default owner value on create.
  • withDefaultOwner($owner) overwrite default owner value on create with concrete owner.
  • withoutDefaultOwner() don't set default owner on model create.
  • scopeWhereNotOwnedBy($owner) scope results to exclude unowned records by owner.

Changed

  • Renamed method getDefaultOwner() to resolveDefaultOwner().
  • Renamed flag attribute $setDefaultOwnerOnCreate to $withDefaultOwnerOnCreate.

Fixed

  • Set default owner on model creation.

View the changes from 1.0.1 to 2.0.0

1.0.1
1.0.0

First stable release.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium