laravel-excludable | Easily exclude model entities from eloquent queries

 by   maize-tech PHP Version: 3.0.0 License: MIT

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.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              laravel-excludable has a low active ecosystem.
              It has 44 star(s) with 1 fork(s). There are 8 watchers for this library.
              OutlinedDot
              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

            kandi-Quality Quality

              laravel-excludable has no bugs reported.

            kandi-Security Security

              laravel-excludable has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License 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.

            kandi-Reuse 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
            Get all kandi verified functions for this library.

            laravel-excludable Key Features

            No Key Features are available at this moment for laravel-excludable.

            laravel-excludable Examples and Code Snippets

            Laravel Excludable,Usage,Basic
            PHPdot img1Lines of Code : 26dot img1License : Permissive (MIT)
            copy iconCopy
            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  
            Laravel Excludable,Installation
            PHPdot img2Lines of Code : 18dot img2License : Permissive (MIT)
            copy iconCopy
            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  
            Laravel Excludable,Usage,Include excluded entities
            PHPdot img3Lines of Code : 3dot img3License : Permissive (MIT)
            copy iconCopy
            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:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/maize-tech/laravel-excludable.git

          • CLI

            gh repo clone maize-tech/laravel-excludable

          • sshUrl

            git@github.com:maize-tech/laravel-excludable.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link