PHP code example of rasim / modal

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

    

rasim / modal example snippets


'Rasim\Modal\ModalServiceProvider',

'Modal'   => 'Rasim\Modal\Facades\Modal',

{{ 	Modal::confirm("TYPE","MESSAGE TITLE","MESSAGE TEXT","URL") }}
{{ 	Modal::alert("TYPE","MESSAGE TITLE","MESSAGE TEXT") }}

{{ 	Modal::confirm("fail","Delete Approve","Are you sure?","delete/1") }}

{{ 	Modal::alert("warning","Please Warning","Be careful please!") }}
shell
php artisan config:publish rasim/modal
shell
php artisan view:publish rasim/modal