PHP code example of pragmarx / nova-boolean-datetime-field

1. Go to this page and download the library: Download pragmarx/nova-boolean-datetime-field 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/ */

    

pragmarx / nova-boolean-datetime-field example snippets

 php
BooleanDateTime::make('Bounced', 'bounced_at')
    ->badge()
    ->colors('bg-danger text-white', 'bg-lighter text-black'),
 php
BooleanDateTime::make('Opened', 'opened_at')
    ->badge()
    ->colors('bg-success text-white', 'bg-warning text-black'),