Downloads
Stars
Version
This package provides a readonlyOnUpdate()
method to your Fields.
This package requires:
You can install this package in a Laravel app that uses Nova via composer:
composer require bytelaunch/readonly-on-update
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()
];
}
This package isn't tested, but it works well for me. Feel free to make PR with improvements.