Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

Shift Index Links

Readme

Nova Shift Index Links

Latest Version on Packagist

This Laravel Nova package adds new resource field to shift index links and move them to custom position.

Nova Shift Index Links

Requirements

  • php: >=8.0
  • laravel/nova: ^4.1

Installation

Install the package in a Laravel Nova project via Composer:

composer require pavloniym/nova-shift-index-links

Usage

Just add ShiftIndexLinks::make() field to your resource fields section.
By default field will move shift index links to 1 index position (after checkboxes).
You can set custom position inside row using setPosition(int $position) method.

use Pavloniym\ShiftIndexLinks\ShiftIndexLinks;

public function fields(Request $request)
{
    return [
      
        // ... Nova default fields
      
        // Move links after checkboxes
        ShiftIndexLinks::make(),
        
        // OR set custom position
        ShiftIndexLinks::make()->setPosition(4),
      
        // ... Nova default fields
    ];
}

License

This project is open-sourced software licensed under the MIT license.

Back to Top
Added 3 years ago
Last updated 3 Years Ago
Version v1.0.0
Nova Version ^4.1
Composer
pavloniym/nova-shift-index-links
GitHub stars 0
Packagist downloads 2,761

Favorites

2 users favorited

Rating

N/A
(out of 5)
★★★★★
★★★★
★★★
★★
0 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas