You can install the package in to a Laravel app that uses Nova via composer:
composer require awesome-nova/tool-actionsclass AddCommentAction extends ToolAction
{
public function name()
{
return 'Add New Comment';
}
public function label()
{
return 'Add comment';
}
public function handle(ActionFields $fields)
{
Comment::create([
'comment' => $fields->get('comment')
]);
}
public function fields()
{
return [
Text::make("Comment")->rules('required')
];
}
}