Questions tagged as 'laravel-5'

1
answer

Retrieve data from several checkboxes when editing a Laravel form

I have an edit form that has many checkbox fields and I need to recover them in the edit view, view: <div class="uk-container"> <div class="uk-margin uk-text-left" uk-grid> <legend class="uk-legend"><strong>4. R...
asked by 19.12.2017 / 04:35
1
answer

Prevent a user from authenticating more than once in other laravel devices

I have an application in laravel 5.4 in which an authenticated user can not be logged in more than one computer at a time, how could this be done? I am new to laravel, I appreciate any help or recommendation.     
asked by 05.12.2017 / 18:35
0
answers

Validate with unique more than one field in Lavaravel 5.1?

I have to register clients but at the moment of doing it, I have to validate that the client does not exist taking into account his name and the street where he lives. I know how to validate by name or street but not using both fields. Valida...
asked by 05.12.2017 / 20:38
1
answer

Do not load the actual values I choose from a select laravel - js

I have a select that when selecting I bring some information from the database by means of an ajax, so everything is normal, and I have the following function in javascript that executes certain operations with that data based on the selection I...
asked by 04.12.2017 / 08:01
1
answer

Show checkbox with "checked" when editing a record

I have a registration form with several checkboxes in the view I have it configured in this way: {!!Form::checkbox('admin','1',false,['id'=>'admin', 'class'=>'uk-checkbox'])!!} Administrator This is saved in the database wi...
asked by 27.11.2017 / 05:13
0
answers

Laravel 5.5 Middlewares

I hope you can help me, I need to make a filter (middleware) say, that only the person who created it can edit a record. It seems easy but I'm new to the subject. I was reading a lot, but they all talk about the user logged in the system, that's...
asked by 27.01.2018 / 01:17
0
answers

How to send variables through ajax with laravel 5?

Hi, I am something new in all this of laravel and ajax, and as a practice I would like to know how to use ajax in laravel .... Finally, I have the following code: index.blade.php <input type="text" name="textvalue" id="...
asked by 22.11.2017 / 16:07
1
answer

Add a new route in a RESTful and use it in a Laravel form

Good afternoon, I'm in a problem that I can not solve, add a new route in a restful controller so (I found it on the internet) Route::get('admin/store_productos','AdminController@store_productos'); Route::resource('admin','AdminController');...
asked by 14.11.2017 / 20:02
0
answers

How to send data of two forms in laravel 5.4

What I want to do is that I have two forms and send the data to my database ... they keep the data for both forms if in my controller I delete the data to send but if I put the two data they do not send me error I do not know if I explain myself...
asked by 11.11.2017 / 01:22
1
answer

change form route laravel 5.4 with jquery

I have the following form in a view: {!! Form::open(['route'=>['user.update',$user_id], 'method' => 'PUT']) !!} {{ Form::close() }} How can I assign the value of 'user_id' dynamically with jquery? This is the HTML that generates th...
asked by 09.11.2017 / 17:20