PHP code example of cristyanhenrich / livemodal

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

    

cristyanhenrich / livemodal example snippets


'providers' => [
    // Other Service Providers...

    cristyanhenrich\livemodal\ModalServiceProvider::class,
],
sh
php artisan vendor:publish --tag=livemodal-assets
html
<html>
<head>
    ...

    @livemodalStyles

</head>
<body>
    ...

    @livemodalScripts

    @livewire('modal', ['idModal' => 'livemodal-modal-id', 'title' => ''])

</body>
</html>