PHP code example of markwalet / nova-modal-response

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

    

markwalet / nova-modal-response example snippets


return Action::modal('modal-response', [
    'title' => 'Result in a model',
    'body' => 'This is way better than that small notification in the bottom right!',
]);

return Action::modal('modal-response', [
    'title' => 'Next steps',
    'html' => '<ul><li>Show this package to your friends</li><li>Contribute</li><li>???</li><li>Profit!</li></ul>',
]);

return Action::modal('modal-response', [
    'title' => 'The JSON response we got back from the external API',
    'code' => json_encode($response->json(), JSON_PRETTY_PRINT),
]);

return Action::modal('modal-response', [
    'title' => 'Test',
    'body' => 'Lorem ipsum',
    'size' => '7xl',
]);