Download the PHP package luilliarcec/filament-shield without Composer

On this page you can find all versions of the php package luilliarcec/filament-shield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-shield

Filament Shield

The easiest and most intuitive way to add access management to your Filament Admin:

Fork from bezhanSalleh/filament-shield

Support Filament

filament-logo

Installation

Install the package via composer:

Publish the config file with:

Configure your options

Add the Spatie\Permission\Traits\HasRoles trait to your User model(s):

If you want to generate your permissions, along with the policy, use the following command:

The package is smart enough to generate the policies in the same namespace as your model associated with the filament resource.

To make use of this package, each resource, page or widget must implement the following contract.

Luilliarcec\FilamentShield\Contracts\HasPermissions

You must implement each of the methods or if you like you can use the traits for each case, resource, page or ` widget.

If you want to add or remove permissions to your resource for generation, you can override the permissions method.

Now this resource will only have two permissions.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

If you want to contribute to these packages, you may want to test it in a real Filament project:

Install the packages in your app's composer.json:

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-shield with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1
filament/filament Version ^2.0
illuminate/contracts Version ^8.0|^9.0
spatie/laravel-package-tools Version ^1.9.2
spatie/laravel-permission Version ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package luilliarcec/filament-shield contains the following files

Loading the files please wait ....