Download the PHP package bdmehedi/laravel-permission without Composer

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

Laravel Role & Permission

laravel-permission

This is a Laravel package that allows you to manage roles and permissions in any Laravel project with minimal database queries and a small number of loaded models. It is a highly optimized package

Installation, configuration, and uses instructions

install via composer

The service provider will be registered automatically. If you want, you may add it manually.

Publish the migrations and edit as your need

Run the migrations. After publishing the migrations and configuring them as your need you have to create database tables by running the command bellow:

Add the HasPermissions traits to User model(s)

Uses

Create Role and Permission

Assign roles and permissions to User

Withdraw roles and permissions from User

Give permissions to Role

Withdraw permissions from Role

Checking permissions

You can check a user's permission with Laravel's default can function.

Or you can check with hasPermissionTo

Checking roles

Middleware

Default middleware

You can use the laravel default middleware can provided by

Package middleware

If you can check at least one premission of many you can use the middleware

if you have another guard you can user

Contribution Guide

This is still in beta, though I have confidence that it will work as expected. You can contribute by reporting bugs, fixing bugs, reviewing pull requests, and more ways. Go to the issues section, and you can start working on an issue immediately. If you want to add or fix something, open a pull request.


All versions of laravel-permission with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
illuminate/support Version >=6.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 bdmehedi/laravel-permission contains the following files

Loading the files please wait ....