src/FormBuilder.php
public function month($name, $value = null, $options = [])
    {
        if ($value instanceof DateTime) {
            $value = $value->format('Y-m');
        }

        return $this->input('month', $name, $value, $options);
    }
public function month($name, $value = null, $options = [])
    {
        if ($value instanceof DateTime) {
            $value = $value->format('Y-m');
        }

        return $this->input('month', $name, $value, $options);
    }
public function month ( $ name , $ value = null , $ options = [ ] ) { if ( $ value instanceof DateTime ) { $ value = $ value -> format ( 'Y-m' ) ; } return $ this -> input ( 'month' , $ name , $ value , $ options ) ; }
Create a month input field.

@param  string $name
@param  string $value
@param  array  $options

@return \Illuminate\Support\HtmlString
Create a month input field .