Download the PHP
package gopex/laratrust-permission-creator without Composer
On this page you can find all versions of the php package
gopex/laratrust-permission-creator. 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.
Informations about the package laratrust-permission-creator
LaratrustPermissionCreator
LaratrustPermissionCreator is a Laravel package that facilitates the management of roles and permissions in your application. It provides two artisan commands, laratrust:from-config and laratrust:from-db, to read and synchronize roles and permissions either from configuration files or directly from the database.
Installation
Install the package using Composer:
Once installed, run the migrations to set up the necessary database tables:
Usage
Laratrust:from-config
The laratrust:from-config command reads roles and permissions from configuration files located in the laratrust folder at the root of your project. To create or update permissions, you can add new PHP files in the following format:
Example File: BasicRolePermissions.php
To execute the command:
This will create or update the roles and permissions based on the provided configuration files.
Laratrust:from-db
The laratrust:from-db command reads roles and permissions directly from the database and updates the configuration files in the laratrust folder accordingly.
This command ensures that your configuration files stay in sync with the current state of roles and permissions stored in the database.
License
This package is open-sourced software licensed under the MIT license. Feel free to use, modify, and distribute as needed.
All versions of laratrust-permission-creator with dependencies
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 gopex/laratrust-permission-creator contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.