yuriy-martini/laravel-nova-fields

There is no license information available for the latest version (v0.1.0) of this package.

v0.1.0 2023-10-17 15:40 UTC

This package is not auto-updated.

Last update: 2024-05-01 17:13:30 UTC


README

Latest Version MIT License

Installation

composer require yuriy-martini/laravel-nova-fields

Usage

app/Nova/Fields/Text.php:

<?php

namespace App\Nova\Fields;

class Text extends \Laravel\Nova\Fields\Text
{
    use \YuriyMartini\Laravel\Nova\Fields\Concerns\IsRequired;
}

app/Nova/User.php:

<?php

namespace App\Nova;

class User extends Resource
{
    public function fields(NovaRequest $request): array
    {
        return [
            \App\Nova\Fields\Text::make('Name'),
        ];
    }
}

Changelog

Please see Changelog File for more information on what has changed recently.

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.