Download the PHP package foothing/laravel-lock-routes without Composer

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

Laravel Lock Routes

This is a Laravel 5 package that allows to bind Lock permissions to routes.

It implements a Lock provider for Laravel Wrappr.

Install

Setup

Add the Wrappr service provider in yourconfig/app.php providers array.

Publish package configuration and migration files

Update your config/wrappr.php

Middlewares

There are two middleware use cases. You can use within Laravel Router or with complex pattern routes. More info in the Wrappr documentation.

Enable Laravel Router Middleware

Use the CheckRoute Middleware to control access to your routes like the following routes.php:

The CheckRoute Middleware accepts 3 arguments:

Example:

Also, the Middleware can handle your route arguments. Consider the following

When you pass a resource identifier within the brackets, the middleware will try to retrieve the value from the http request automatically.

Enable custom routes Middleware

When you're not able to fine-control at routes definition level, there's an alternative way of handling permissions. Think about a global RESTful controller like the following:

Assume that your controller applies a variable pattern to handle the routes, like for example

In this case you won't be able to bind permissions with the previous method, so the CheckPath middleware comes to help. In order to enable this behaviour you need some additional setup step.

Add the global Middleware to your App\Http\Kernel like this

Now you can configure your routes in the config file or programmatically following the Wrappr routes documentation.

ACL abstraction layer

If you want more decoupling from your app and the acl library (Lock in this case) you can use the acl manipulation methods that are implemented in the provider. See example:

License

MIT


All versions of laravel-lock-routes with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
illuminate/auth Version ~5.0
illuminate/database Version ~5.0
beatswitch/lock-laravel Version 0.5.*
foothing/laravel-wrappr Version ~0.5
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 foothing/laravel-lock-routes contains the following files

Loading the files please wait ....