PHP code example of dinandmentink / nova-markdown

1. Go to this page and download the library: Download dinandmentink/nova-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/ */

    

dinandmentink / nova-markdown example snippets


use DinandMentink\Markdown\Markdown;

public function fields(Request $request)
{
    return [
        Markdown::make("Field Name"),
    ];
}

use DinandMentink\Markdown\Markdown;

public function fields(Request $request)
{
    return [
        Markdown::make("Content")->rules('

use DinandMentink\Markdown\Markdown;

public function fields(Request $request)
{
    return [
        Markdown::make("Field With Uploads")->uploads(),
        Markdown::make("Field Without Uploads")->uploads(false),
    ];
}

function($user) { 
    return "uploads/" . \Str::slug($user->name); 
}
bash
php artisan vendor:publish --provider="DinandMentink\Markdown\FieldServiceProvider"