LaravelPackages.net
Acme Inc.
Toggle sidebar
nicko170/laracash-nova-field

A Laravel Nova field for Laracash (https://github.com/andriichuk/laracash)

2.063
0
v2.0.2
About nicko170/laracash-nova-field

nicko170/laracash-nova-field is a Laravel package for a laravel nova field for laracash (https://github.com/andriichuk/laracash). It currently has 0 GitHub stars and 2.063 downloads on Packagist (latest version v2.0.2). Install it with composer require nicko170/laracash-nova-field. Discover more Laravel packages by nicko170 or browse all Laravel packages to compare alternatives.

Last updated

laracash-nova-field

A Laravel Nova field for Laracash (https://github.com/andriichuk/laracash)

Installation

Use composer to install.

composer require nicko170/laracash-nova-field

Usage

<?php

namespace App\Nova;

use Nicko170\LaracashNovaField\LaracashNovaField;

class Invoice extends Resource
{
    public function fields(Request $request): array
    {
        return [
            ID::make(__('id'), 'id')->sortable()->readonly(true),
            Text::make(__('Invoice'), 'number')->sortable()->readonly(true),
            LaracashNovaField::make(__('Total'), 'total'),
            LaracashNovaField::make(__('Due'), 'amount_due')
        ];
    }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GNU GPLv3

Comments