PHP code example of silvanite / nova-field-hidden

1. Go to this page and download the library: Download silvanite/nova-field-hidden library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

silvanite / nova-field-hidden example snippets


use Silvanite\NovaFieldHidden\Hidden;

class MyResource extends Resource
{
    ...
    public function fields(Request $request)
    {
        return [
            ...
            Hidden::make('Field')->value('My field value'),
        ];
    }