Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Christianus's avatar

Laravel Form Textarea

Im Newbie in laravel so i need your help guys, i create a form with textarea inside but it always can be resize, how to make it static (cant resize again) ?

            <div class="panel-body">
                <form class="form-horizontal" role="form" method="POST" action="{{ url('/jenislayanan') }}">
                    {{ csrf_field() }}

                    <div>
                        <label for="username" class="col-md-4 control-label" name="username">Hello, Username</label>
                    </div>

                    <div>
                        <label class="col-md-4 control-label">Please feel free to give your opinion about us here</label>
                    </div>

                    <div>
                        <textarea name="notes" cols="50" rows="20"></textarea>
                    </div>

                    <div class="form-group">
                        <div class="col-md-6 col-md-offset-4">
                            <button type="submit" class="btn btn-primary">
                                <i class="fa fa-btn fa-sign-in"></i> Send
                            </button>                            
                        </div> 
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
0 likes
3 replies
SaeedPrez's avatar

Except for some special cases, it's always a good idea to allow vertical resize of textareas. Can for example be more user friendly and increase the usability without breaking the design.

textarea {
    resize: vertical;
}

Might even want to consider adding an auto grow script

2 likes

Please or to participate in this conversation.