Download the PHP package mateusz-peczkowski/nova-heartbeat-resource-field without Composer

On this page you can find all versions of the php package mateusz-peczkowski/nova-heartbeat-resource-field. 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 nova-heartbeat-resource-field

NovaHeartbeatResourceField

Heartbeat Resource Field

This package provides a custom Nova field that will like heartbeat monitor watch who is editing currently the resource.

On a listing/details there will be information who is currently editing and as well another person will be blocked from editing the same resource to not overlap changes.

Package is made for Laravel Nova ^4.

Installation

You can install the package via composer:

Migrations

After installation, you need to run the migration to create the table that will store the heartbeat data.

Publish package (optional)

Publish the configuration file to customize the settings of the package (check bellow for more details).

Configuration

The package provides a configuration file that allows you to customize the settings of the package.

Usage

Nova Resource Field

To install this field in your Nova resource, you need to add the following code to the fields method of your resource.

Optionally you can allow to retake the resource by adding the following code

Then on details view you will have additional button to retake the resource.

Nova Resource Trait

Add this trait to your Nova resource

Model Trait

Add this trait to your Model

Clearing expired heartbeats (recommended)

In case of failure of removing the heartbeat, you can use the following command to remove all the heartbeats that are older than the timeout.


All versions of nova-heartbeat-resource-field with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/nova Version ^4.0
outl1ne/nova-translations-loader Version ^5.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 mateusz-peczkowski/nova-heartbeat-resource-field contains the following files

Loading the files please wait ....