PHP code example of spatie / laravel-markdown-response
1. Go to this page and download the library: Download spatie/laravel-markdown-response 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-response example snippets
use Spatie\MarkdownResponse\Facades\Markdown;
$markdown = Markdown::convert($html);
use Spatie\MarkdownResponse\Facades\Markdown;
it('converts the about page to markdown', function () {
Markdown::fake();
$this->get('/about.md')->assertOk();
Markdown::assertConverted();
});
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.