1. Go to this page and download the library: Download snellingio/folio-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/ */
snellingio / folio-markdown example snippets
use Snelling\FolioMarkdown\Facades\FolioMarkdown;
class FolioServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*/
public function boot(): void
{
// Place your Folio calls before the register method
Folio::path(resource_path('views/pages'))->middleware([
'*' => [
//
],
]);
// Register Folio Markdown at the bottom of the boot method
FolioMarkdown::register();
}
}