Download the PHP package lukasjankowski/laravel-revision without Composer

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

Unmaintained

Laravel-Revision for Larvel 5

This package allows you to log changes made to specific models.

Note: There are many packages, which cover similar aspects. This package was heavily inspired by Revisionable and Laravel-Auditing you should definitely check them out.

Why another?

Simple: Both these packages do not - at the time of writing - multi-auth support. This one does.

I ran into a problem while working on a project, namely that I wanted to use said packages and got stuck as soon as I realized that they do not support different Auth-Providers. So I went ahead and made this package. It follows the same basic principle and uses a very similar syntax.

Installation

Require via composer:

Include the service provider within your .

Publish the config file.

Publish the migration.

You can change the table name within the config file, which will be located at: .

Finally migrate the migration:

Usage

Add the trait to the models, which you want to enable revisions on.

Example:

Add the trait to the models, which you want to be the ones perfoming the revisions.

Example:

You can perform the configuration in the generalized file. But if you want to perform more fine grained control:

``

Revisions will log the , , and event.

You can then access these revisions:

From the model, which "hasRevisions": `` From the model, which "hasRevisions" with eager-loading:

From the model, which "isReviser", which performed the revision:

From the model, which "isReviser", which performed the revision with eager-loading:

Since it's a collection it supports all its methods:

But also a way to get the modified data:

As you can see it is very similar to the above mentioned packages. However it doesn't matter, who performs the revision as long as they implement the IsReviser trait. The package will then go ahead and try to fetch the currently logged in user as the reviser, if that fails it will default to null.

TODO


All versions of laravel-revision 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 lukasjankowski/laravel-revision contains the following files

Loading the files please wait ....