src/Commands/CrudViewCommand.php
protected function createPasswordField($item)
    {
        $start = $this->delimiter[0];
        $end = $this->delimiter[1];

        $required = $item['required'] ? 'required' : '';

        $markup = File::get($this->viewDirectoryPath . 'form-fields/password-field.blade.stub');
        $markup = str_replace($start . 'required' . $end, $required, $markup);
        $markup = str_replace($start . 'itemName' . $end, $item['name'], $markup);
        $markup = str_replace($start . 'crudNameSingular' . $end, $this->crudNameSingular, $markup);

        return $this->wrapField(
            $item,
            $markup
        );
    }
protected function createPasswordField($item)
    {
        $start = $this->delimiter[0];
        $end = $this->delimiter[1];

        $required = $item['required'] ? 'required' : '';

        $markup = File::get($this->viewDirectoryPath . 'form-fields/password-field.blade.stub');
        $markup = str_replace($start . 'required' . $end, $required, $markup);
        $markup = str_replace($start . 'itemName' . $end, $item['name'], $markup);
        $markup = str_replace($start . 'crudNameSingular' . $end, $this->crudNameSingular, $markup);

        return $this->wrapField(
            $item,
            $markup
        );
    }
protected function createPasswordField ( $ item ) { $ start = $ this -> delimiter [ 0 ] ; $ end = $ this -> delimiter [ 1 ] ; $ required = $ item [ 'required' ] ? 'required' : '' ; $ markup = File :: get ( $ this -> viewDirectoryPath . 'form-fields/password-field.blade.stub' ) ; $ markup = str_replace ( $ start . 'required' . $ end , $ required , $ markup ) ; $ markup = str_replace ( $ start . 'itemName' . $ end , $ item [ 'name' ] , $ markup ) ; $ markup = str_replace ( $ start . 'crudNameSingular' . $ end , $ this -> crudNameSingular , $ markup ) ; return $ this -> wrapField ( $ item , $ markup ) ; }
Create a password field using the form helper.

@param  array $item

@return string
Create a password field using the form helper .