EbrahemSamer
3 months ago
177
1
Laravel

How to use function on the value of laravelcollective textarea ?

Posted 3 months ago by EbrahemSamer

I want to use stripe_tags() on the value of the textarea in editing but I can not access this value...

Code:

{!! Form::model($post, ['method'=>'PATCH','action'=>['Admin\[email protected]', $post->id], 'files'=>true]) !!}

        <div class="form-group">
            {!! Form::label('title', 'Title') !!}
            {!! Form::text('title', null, ['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('content', 'Content') !!}
            {!! Form::textarea('content',null, ['class'=>'form-control', 'id' => 'postcontent']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('category_id', 'Category') !!}
            {!! Form::select('category_id',$categories,null, ['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('photo_id', 'Post Thumbnail') !!}
            {!! Form::file('photo_id', ['class'=>'form-control']) !!}   
        </div>
        <div class="form-group">
            {!! Form::submit('Update Post',['class'=>'btn btn-info']) !!}
        </div>

    {!! Form::close() !!}

Please sign in or create an account to participate in this conversation.