PHP code example of orlyapps / nova-multiline-text

1. Go to this page and download the library: Download orlyapps/nova-multiline-text 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/ */

    

orlyapps / nova-multiline-text example snippets


// ...
use Orlyapps\NovaMultilineText\MultilineText;
// ...

public function fields(Request $request)
{
    return [
        ID::make()->sortable(),
        MultilineText::make('Company', function () {
            return [$this->company->name, $this->department->name, $this->location->name];
        }),
        MultilineText::make('Company', function () {
            return ['First Line highlighted', 'Second Line', 'Lorem Ipsum'];
        }),
         MultilineText::make('Company', function () {
            return ['First Line', 'Second Line', 'Lorem Ipsum'];
        })->highlightFirst(false),

    ];
}