Download the PHP package holoultek/laravel-capabilities without Composer

On this page you can find all versions of the php package holoultek/laravel-capabilities. 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 laravel-capabilities

Laravel Capabilities

A laravel package to add roles and capabilities functionality to your auth models.

Installation

To use the package:

Uuid Auth models

If you are using uuid instead of the normal integer id for your auth models, you should publish the migrations and update the columns.

Migrate the database

Then you have to publish the config files for roles and capabilities

This will publish 2 files:

1. capabilities.php

The capabilities are auto discovered via this config files; The key will be your controller name without 'Controller' word.

And the values will be an indexed array which describe the capability name as index and the methods in your controller as array for the value.

For Example:

This describes a "show dashboard" capability which controlled by "DashboardController", the "show" method

2. roles.php

You can provide here all the roles for your application as keys and its value will be a list of all capabilities defined in the previous step.

'capability' is the middleware.

As a final step you should add the access controlled middleware to your route

or as group

Fill the tables

After editing the config files you can run these commands in sequence to create all roles and capabilities defined

Attaching and detaching

To attach or detach a capability

To attach or detach a capability

To check if auth model has a capability or role

Badges

Contact

If you have any questions or concerns, feel free to reach out to me at [email protected]

Or by visiting https://holoultek.com


All versions of laravel-capabilities with dependencies

PHP Build Version
Package Version
No informations.
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 holoultek/laravel-capabilities contains the following files

Loading the files please wait ....