PHP code example of spatie / laravel-markdown
1. Go to this page and download the library: Download spatie/laravel-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/ */
spatie / laravel-markdown example snippets
echo 'Hello world';
// by resolving the class out of the container all the options
// in the config file will be used.
app(Spatie\LaravelMarkdown\MarkdownRenderer::class)->toHtml($markdown);