Questions tagged as 'laravel-5'

0
answers

Error when exporting to excell from laravel 5.5

I am using Maatwebsite to export an excell view, I tried to follow the steps that appear in its documentation, but I get the following error: This is the code of my export: <?php namespace App\Exports; use Carbon\Carbon; use App\Int...
asked by 31.12.2018 / 10:35
0
answers

Insert a laravel Array to MongoDB

I need to know how I can insert an array (that was obtained from a MySQL query) to mongodb (it should be inserted in the same way in mongodb as an array), this is what I have done but it does not keep me as it should be. public function create...
asked by 07.12.2018 / 22:23
0
answers

doubt roles laravel 5.5

I have the following code in a blade template, and I have given admin permissions to the entire menu, the question is ... what can I do if I want to give permission to two other users to that same menu? Is there any way to do this? @exte...
asked by 04.12.2018 / 02:31
1
answer

how to maintain an image after request error message in laravel?

How I have the problem that when sending a form with an image field when sending it and returning an error message of the request the image is lost ... How can I do to maintain the image?     
asked by 30.03.2016 / 06:23
0
answers

Create 2 versions of the Register user template

You see, I have a User table, with these variables: Schema::create('users', function(Blueprint $table){ $table->increments('id'); $table->string('name'); $table->string('second_name')->default('usuario')...
asked by 26.11.2018 / 12:41
1
answer

Problems editing a Laravel line

Thank you in advance for reading, and I hope that if you are not bothered, you could guide me to solve this problem. I have a form called a server, in that form I enter the important data, including the server and the version it has....
asked by 23.11.2018 / 18:24
1
answer

laravel Validator :: make

I have a problem with validations, and I do not know how to validate an arrangement: [ 0: {feature_id: "10", feature_value: 18} 1: {feature_id: "11", feature_value: "name"} ] in: private $featureOptions = [ '10' => 'required|numeri...
asked by 23.11.2018 / 18:02
2
answers

array_key_exists (): The first argument should be either a string or an integer

I get this error when I try to Save to the Store public function store(Request $request) { $files = $request->file('links'); $destinationPath = 'boletines'; if($request->hasFile($files)){ $cliente = $request->i...
asked by 26.11.2018 / 19:29
1
answer

Deposit several selected users one by one in database,

The problem that occurs is the following I have a table with checkbox, I click on several to be sent with a file that you select, by clicking on the button to upload file to each user that you select in the view . This is the controller's method...
asked by 22.11.2018 / 18:48
1
answer

Problem bcrypt laravel 5.5 does not work

Does anyone know how to put a bcrypt in the password field of this method? /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illu...
asked by 01.12.2018 / 21:28