jose-chan/multiple-datetime

laravel-admin extension for multiple datetime select

v1.0.0 2020-08-09 15:11 UTC

This package is auto-updated.

Last update: 2020-09-09 15:38:39 UTC


README

ScreenShoot

avatar

Installation


composer require "jose-chan/multiple-datetime:v1.0.0"

php artisan vendor:publish --tag=multiple-datetime

Configurations

Open config/admin.php, add configurations that belong to this extension at extensions section.

    'extensions' => [

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

Usage

//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");