Questions tagged [laravel-form]

Laravel component for generating HTML elements

In Laravel 4.2 this component is build-in, but if you want use it in Laravel 5.x you need download additional package maintain by Laravel Collective

112 questions
8
votes
1 answer

Laravel: HTTPS in Form::open()

I'm using SSL for my website (Cloudflare HTTPS) in my login for weh I use ``, Laravel won't convert my website link to SSL version and it shows http version. How can I force Laravel to use https for me? For example:
Sky
  • 4,244
  • 7
  • 54
  • 83
6
votes
2 answers

Exclude Laravel-specific values from request

I want to run json_encode($request->all()) after a form is submitted, however the returned array is "polluted" with _method and _token values. Is there any neat way to exclude the framework-specific fields from the generated json?
Alex Lomia
  • 6,705
  • 12
  • 53
  • 87
6
votes
5 answers

populate old html select field in laravel upon failure

i have a form with a select input, validation is fine, but upon failure the select field doesn't populate the old value here is my select field
dxcoder1
  • 289
  • 2
  • 4
  • 14
5
votes
2 answers

Laravel request validation with multiple forms on the same page

I have three different forms on the same page. All inputs has it's own validation rules, code in Request file has structure like this: public function rules() { return [ // 'sold' => 'required', 'unit_in_stock' =>…
5
votes
1 answer

Laravel 5 getting input values that are arrays

I have a text field like {!! Form::textarea('representive[address_1]' ,null ,['class' =>'textboxlong form-control','style'=>'height:60px;']) !!} In my form. And when I try to get its value in my controller but it comes null. What I try is $adress…
Tartar
  • 5,149
  • 16
  • 63
  • 104
4
votes
1 answer

Login and registration form in Laravel 5

I start to learn a new laravel and trying to learn it, by building small project, to make my starter site, but I have a problem. I only create new project without any plugin. I have a problem with login and register form. I put this into route…
mrakodol
  • 1,143
  • 3
  • 12
  • 41
3
votes
2 answers

FormRequest not populating $request->old() after validation failure

My request object isn't receiving old() data when the form fails validation. I am receiving the error messages, but none of the old input data. I've read a few solutions on similar questions that reference making changes to the redirect on the…
Dom DaFonte
  • 1,619
  • 14
  • 31
3
votes
1 answer

Laravel Form Request several validation rules of same type

I have a Form Request Validation file, which checks is an input field not empty ('required') and then if it's value exists in the database in table 'table1'. I want to add a 2nd exist rule to the same input field, and return a message if 2nd exist…
Sergej Fomin
  • 1,822
  • 3
  • 24
  • 42
3
votes
1 answer

Laravel 5: Installing Form and HTML classes without composer

I'm interested in installing Form and HTML classes on Laravel 5 without composer. How can I do this? For those wanting to convince me to use composer: 1) I want to see what it does by doing it manually myself at least once. 2) There is no composer…
Alan
  • 1,322
  • 1
  • 21
  • 36
2
votes
2 answers
2
votes
4 answers

Can't update user in laravel

I want some help with my code. I try to update user data but it's not update anything. User Name, Email, Posisson, Image. Any help please. My Route : I used URL because route didn't work. Route::get('editusers/{id}','UsersController@update'); My…
Hima Hima
  • 123
  • 16
2
votes
1 answer

Laravel 5.5 redirect to url with anchor and with data

In my footer.blade.php i have the following code about subscribing @if(Session::has('success'))
Konstantinos Natsios
  • 2,874
  • 9
  • 39
  • 74
2
votes
1 answer

bootstrap selectpicker: Make a select drop down required

I am using bootstrap selectpicker and i want to make a dropdown required. What is the proper way to make a bootstrap selectpicker select required. (i didn't want's to use any other jquery plugin). {!! Form::select('from', [], null, ['class' =>…
Hasan Hafiz Pasha
  • 1,402
  • 2
  • 17
  • 25
2
votes
2 answers

Invalid route in a Laravel search form

Hi i'm following a tutorial bout how to set a search form but I'm getting a route error (NotFoundHttpException). form {!! Form::open(['method'=>'GET' ,'url' => 'search', 'class'=>'form-group main-form', 'id'=>'search-form', 'role'=>'form']) !!} …
Papouche Guinslyzinho
  • 5,277
  • 14
  • 58
  • 101
2
votes
1 answer

Using Font Awesome in Laravel's Forms Submit button?

I have the following form that works as a 'Delete' button. {{ Form::open(['method' => 'DELETE', 'route' => ['notes.delete', $note->user->id]]) }} {{ Form::submit('Delete', ['class' => 'btn btn-warning btn-sm']) }} {{ Form::close() }} Is there a way…
ignite-me
  • 738
  • 3
  • 14
  • 33
1
2 3 4 5 6 7 8