Download the PHP package tmyers273/laravel-ownership without Composer
On this page you can find all versions of the php package tmyers273/laravel-ownership. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tmyers273/laravel-ownership
More information about tmyers273/laravel-ownership
Files in tmyers273/laravel-ownership
Download tmyers273/laravel-ownership
More information about tmyers273/laravel-ownership
Files in tmyers273/laravel-ownership
Vendor tmyers273
Package laravel-ownership
Short Description Allows ownership verification on route model binding
License
Package laravel-ownership
Short Description Allows ownership verification on route model binding
License
Please rate this library. Is it a good library?
Informations about the package laravel-ownership
Laravel Ownership
A simple package to do Model ownership checks automatically via Laravel's Route Model Binding.
What's it do?
Installation
composer require tmyers273/laravel-ownership
php artisan vendor:publish --tag=laravel-ownership-config --tag=laravel-ownership-trait
Add OwnsModels
trait to your User
model
Add OwnedByUser
to each model you want to validate ownership on.
Modify the isAdmin
and owns
methods on the OwnsModels
trait to fit your needs!
All versions of laravel-ownership with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
The package tmyers273/laravel-ownership contains the following files
Loading the files please wait ....