PHP code example of joshmoreno / nova-html-field

1. Go to this page and download the library: Download joshmoreno/nova-html-field 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/ */

    

joshmoreno / nova-html-field example snippets


\JoshMoreno\Html\Html::make('Some Title')
    ->html('<h1>Example</h1>'),

\JoshMoreno\Html\Html::make('Some Title')
    ->html(function() {
        return "<h1>$this->name</h1>";
    }),

\JoshMoreno\Html\Html::make('Some Title')
    ->view('fields.example'),

\JoshMoreno\Html\Html::make('Some Title')
    ->html(function() {
        return view('fields.example')
                 ->with('name', $this->name)
                 ->render();
    }),