PHP code example of jose-chan / multiple-datetime

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

    

jose-chan / multiple-datetime example snippets



    'extensions' => [

        'multiple-datetime' => [
        
            // Set to `false` if you want to disable this extension
            'enable' => true,
            
            'config' => [
                //'alias' => "setYourName",//set your AliasName Or not Set
            ]
        ]
    ]
    


//Use In Model's Field
$form->multipleDatetime("field", "multiple-datetime");

//Use In HasOne Relation
$form->multipleDatetime("relation->field", "multiple-datetime");

//Use In HasMany Relation
$form->multipleDatetime("relation", "multiple-datetime")->relateField("field");