laravel-excludable | Easily exclude model entities from eloquent queries
kandi X-RAY | laravel-excludable Summary
kandi X-RAY | laravel-excludable Summary
laravel-excludable is a PHP library. laravel-excludable has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
Easily exclude model entities from eloquent queries. This package allows you to define a subset of model entities who should be excluded from eloquent queries. You will be able to override the default Exclusion model and its associated migration, so you can eventually restrict the exclusion context by defining the entity that should effectively exclude the subset. An example usage could be an application with a multi tenant scenario and a set of global entities. While those entities should be accessible by all tenants, some of them might want to hide a subset of those entities for their users. You can find an example in the Usage section.
Easily exclude model entities from eloquent queries. This package allows you to define a subset of model entities who should be excluded from eloquent queries. You will be able to override the default Exclusion model and its associated migration, so you can eventually restrict the exclusion context by defining the entity that should effectively exclude the subset. An example usage could be an application with a multi tenant scenario and a set of global entities. While those entities should be accessible by all tenants, some of them might want to hide a subset of those entities for their users. You can find an example in the Usage section.
Support
Quality
Security
License
Reuse
Support
laravel-excludable has a low active ecosystem.
It has 44 star(s) with 1 fork(s). There are 8 watchers for this library.
It had no major release in the last 12 months.
laravel-excludable has no issues reported. There are 1 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of laravel-excludable is 3.0.0
Quality
laravel-excludable has no bugs reported.
Security
laravel-excludable has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
laravel-excludable is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
laravel-excludable releases are available to install and integrate.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of laravel-excludable
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of laravel-excludable
laravel-excludable Key Features
No Key Features are available at this moment for laravel-excludable.
laravel-excludable Examples and Code Snippets
Copy
use App\Models\Article;
$article = Article::query()->findOrFail(1)
$article->addToExclusion();
$article->excluded(); // returns true
use App\Models\Article;
Article::findOrFail(1); // throws Symfony\Component\HttpKernel\Exception\NotFo
Copy
composer require maize-tech/laravel-excludable
php artisan vendor:publish --provider="Maize\Excludable\ExcludableServiceProvider" --tag="excludable-migrations"
php artisan migrate
php artisan vendor:publish --provider="Maize\Excludable\ExcludableSe
Copy
use App\Models\Article;
Article::withExcluded()->get(); // queries all models, including those marked as excluded
Community Discussions
No Community Discussions are available at this moment for laravel-excludable.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-excludable
You can install the package via composer:.
Support
Please see CONTRIBUTING for details.
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page