PHP code example of mphpmaster / laravel-nova-date-field

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

    

mphpmaster / laravel-nova-date-field example snippets


public function fields(Request $request)
{
    return [
        Date::make('start_date')->addRuleBeforeOrEqual('end_date');
        Date::make('end_date')->addRuleAfterOrEqual('start_date');
    ];
}