PHP code example of marshmallow / nova-placeholder

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

    

marshmallow / nova-placeholder example snippets


use Marshmallow\Placeholder\Placeholder;

Placeholder::make(__('Planning'))
    ->content('Deze lead is planned to be completed on august 1. This will be done by <strong>John Doe</strong>.<br/><a href="">Click here</a> to view the full construction planning.'),


Placeholder::make(__('Planning'))
    ->view('components.planning', [
        'lead' => $lead,
    ]),