1. Go to this page and download the library: Download datomatic/nova-markdown-tui 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/ */
datomatic / nova-markdown-tui example snippets
namespace App\Nova;
use Datomatic\NovaMarkdownTui\MarkdownTui;
use Illuminate\Http\Request;
class BlogPost extends Resource
{
// ...
public function fields(Request $request)
{
return [
// ...
MarkdownTui::make('Content'),
// ...
];
}
}
'mediaUploadUrl' => '/api/nova-markdown-tui/upload', // put your endpoint, or null to disable upload
'mediaUploadHeaders' => [
'X-Secret-Key' => 'super-secret-token', // if you prefer to protect the endpoint
],