Category : input

Something like Request::only() that throws an error if there is any extra/unexpected field in the request? E.g.: $request->strictly([‘username’, ‘password’]); that would throw an error if POST request contains fields ‘username’, ‘password’, and ‘foo’? In case there isn’t, what would be the best way to perfoem such a verification manually? Sourc..

Read more

Estou tentando hospedar em nuvem alguns arquivos recebidos via input na minha aplicação, porém estou com dificuldade para mandar as informações do front-end para o back-end. Tecnologias usadas: Front-end: ReactJs (TypeScript), MaterialUi, StyledComponents Back-end: API REST (Lavaravel) Estou utilizando um FormData para receber os parâmetros e passá-los para o back-end(que está funcionando perfeitamente, pois nos ..

Read more

I’m trying to host some files received via input in my application in the cloud, but I’m having trouble sending the information from the front-end to the back-end. Technologies used: Front-end: ReactJs (TypeScript), MaterialUi, StyledComponents Back-end: REST API (Washable) I’m using a FormData to receive the parameters and pass them to the back-end (which is ..

Read more

I have an input which is array <input type="text" name="review_rate[]" value="{{$rinfo->review_rate}}" class="form-control text-center pay_review_scale_{{$cnts}}"> Now this input is not mandatory so when user doesnt add any value in first row and adds value in second row then it shows only 1 value in controller array $review_rate= $request->review_rate; echo "<pre>"; print_r($review_rate);exit; // this shows only second ..

Read more

I am trying to make an upload modal where the user can upload a project containing a Title, Cover image and gallery of images. For that I thought about using the input element with the property ‘multiple’. <div class="addSection"> <form action="{{ route(‘architecture’, [‘locale’ => app()->getLocale()] ) }}" method="POST" class="sectionUploader" enctype="multipart/form-data"> {{ csrf_field() }} <label for="projectTitle">Project ..

Read more

i have this code but i dont know why my jquery is not working, I try to pass the name of the user to the input but nothing happends when i click in the row that has the user, my code is this <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="container"> <form> <h3>Add Bill</h3> <div className="form-group"> <label>select user</label> <br> ..

Read more

I have a blade.php. file: <form method="post" class="w-full max-w-lg" action="/staff/create/program" enctype="multipart/form-data"> @csrf <div class="flex flex-wrap -mx-3 mb-6"> <div class="w-full px-3"> <label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2" for="thumbnail"> Thumbnail </label> <input type="file" id="thumbnail "name="thumbnail"> </div> </div> <div class="form-group md:flex md:items-center"> <div class="md:w-1/3"> <label class="col-md-4 control-label" for="submit"></label> <div class="col-md-4"> <button id="submit" name="submit" class="shadow bg-teal-400 hover:bg-teal-400 ..

Read more

Please I am trying to submit payment using Paystack payment gateway using laravel package PAYSTACK-LARAVEL by Unicodedeveloper, when I submitted payment only the amount, email, metadata field get submitted the other fields like first_name, last_name, phone get submitted as null I don’t know why? anyone with an idea why this is happening pls help. Here ..

Read more

I want to insert into database 50 inputs from a user. Basically its a check list form which a user has to describe every step in an input. Ex. Question 1: <input type=’text’ /> . . Question 50: <input type=’text’ /> The form passes only 30 first inputs, the others remain null,no data is passed. ..

Read more

i written a very simple code to update value of checkbox but it update 1 in db on uncheck it doesnot update 0 if request is submit here is code <div class="form-group"> <label>If it is checked it means user can only create given customer order.</label> <input type="checkbox" id="js-switch" name="customer_itself" @if($ot->customer_itself == 1) checked @endif> </div> ..

Read more

this is my laravel blade input tage below: <div class="col-sm-6"> <div class="form-group"> <label for="exampleInputEmail1">নাম</label> <input type="text" name=’product_name’ class="form-control" id="exampleInputEmail1" value={{ @$ProductById->product_name }}> </div> </div> The Problem is the value contained the only the first word of the full sentence Sourc..

Read more