PHP code example of sslah / modal

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

    

sslah / modal example snippets


// config/modal.php
return [
    'default_size' => 'md',
    'sizes' => [
        'sm' => 'max-w-sm',
        'md' => 'max-w-md',
        'lg' => 'max-w-lg',
        // ...
    ],
    'backdrop' => [
        'closable' => true,
        'class' => 'bg-gray-500 bg-opacity-75',
    ],
];

'backdrop' => [
    'closable' => true,
],
bash
php artisan modal:install