Laravel Nova icon Nova Packages
R

Readonly On Update

This package is possibly abandoned. Please proceed with care.

Readme

Nova Readonly on Update

This package provides a readonlyOnUpdate() method to your Fields.

Example

Example

Requirements

This package requires:

  • PHP ^7.3.
  • Laravel Nova ^2.0 or ^3.0.

Installation

You can install this package in a Laravel app that uses Nova via composer:

composer require bytelaunch/readonly-on-update

Usage

Add the following code in your own resource implementation:

<?php

...

class YourResource extends Resource {

    ...

    public function fields(Request $request)
    {
        return [
            ...

            // Are you ready?
            // --------------
            // 1. Use readonlyOnUpdate() method
            // 2. See the results
            Field::make(__('Column'), 'column') // Use whatever Field
                ->readonlyOnUpdate()
        ];
    }

Disclaimer

This package isn't tested, but it works well for me. Feel free to make PR with improvements.

Back to Top
Added 4 years ago

This package is listed on the Packagist API, but has no stable tags.

Please note that the Packagist cache is pretty long, so some times you just need to check back in an hour.

Favorites

3 users favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
1 ratings

Author

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas