You can install the package in to a Laravel app that uses Nova via composer:
composer require orlyapps/nova-multiline-text
Use this field in your Nova Resource
// ...
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),
];
}
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.