PHP code example of ardenthq / nova-enhanced-markdown
1. Go to this page and download the library: Download ardenthq/nova-enhanced-markdown 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/ */
ardenthq / nova-enhanced-markdown example snippets
namespace App\Nova;
use Laravel\Nova\Http\Requests\NovaRequest;
use Laravel\Nova\Resource;
use Ardenthq\EnhancedMarkdown\EnhancedMarkdown;
final class ResourceName extends Resource
{
// ....
public function fields(NovaRequest $request)
{
return [
// ....
EnhancedMarkdown::make('body'),
// ...
];
}
// ...
}