PHP code example of marshmallow / nova-input-with-type

1. Go to this page and download the library: Download marshmallow/nova-input-with-type 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/ */

    

marshmallow / nova-input-with-type example snippets


use Marshmallow\InputWithType\InputWithType;

InputWithType::make('Started working at')->type('time'),

InputWithType::make('My field')->text(),

InputWithType::make('My field')->color(),

InputWithType::make('My field')->date(),

InputWithType::make('My field')->datetimeLocal(),

InputWithType::make('My field')->email(),

InputWithType::make('My field')->hidden(),

InputWithType::make('My field')->number(),

InputWithType::make('My field')->password(),

InputWithType::make('My field')
		->range()
    ->min(0)
    ->max(10)
    ->step(2),

InputWithType::make('My field')->tel(),

InputWithType::make('My field')->time(),

InputWithType::make('My field')->url(),

InputWithType::make('My field')
	->week()
	->min('2018-W18')
	->max('2018-W26'),

InputWithType::make('My field')
	->month()
	->min('2018-03'),

InputWithType::make('My field')->search(),