Questions tagged as 'laravel-5'

1
answer

How to receive text, files by the put method in laravel 5.6 (api restFULL)

I am developing APIS with laravel 5.6, I have a driver that receives images and text, by post everything works normally for me here I leave the code js JS function registraPET(){ var datos = new FormData();...
asked by 12.12.2018 / 19:03
0
answers

preview a document in laravel

I have a list of files that is in the Mysql database, it is shown as a list and it gives me the names of the files that are in it, for example my view that is a table with the list of all the documents. or txt or pdf or png or jpg that can be up...
asked by 05.12.2018 / 21:01
0
answers

pass several files to a laravale form

I have this method in which when I touch the file checks, all the files that are checked are displayed in my select public function mostrar(Request $request){ $clients = DB::table('clientes')->select('id','nombre')->where('pais', $...
asked by 04.12.2018 / 15:46
0
answers

Problem url GET laravel 5.5

I am currently working on roles, and so far everything has been working well, until I notice something in one of the modules, the problem is the following, I have two role users, the admin can consult all the users of all the referrals, while th...
asked by 05.12.2018 / 03:52
0
answers

Error 419 (unknown status) in POST request with Ajax

According to what I have read, I have a security problem with the token. I try placing this: $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); In my header I find this: <!--...
asked by 02.12.2018 / 01:31
3
answers

Get only 1 Item from a collection in laravel?

I hope you can help me. I have this query in laravel $poa = DB::table('poa_formatos') ->join('entities', 'poa_formatos.entity_id', '=', 'entities.id') ->join('acciones_especificas', 'acciones_especifica...
asked by 03.12.2018 / 17:49
0
answers

unlink does not work

You see, I have a table Photo with these values: Schema::create('fotos', function(Blueprint $table){ $table->increments('id'); $table->string('foto')->unique(); $table->string('nombre')->unique();...
asked by 07.12.2018 / 12:34
0
answers

Laravel Pasport, Two Login Login tables

I am trying to make a user authentication with two tables, a different table to 'users' and the one of 'users' which is the default Laravel, use laravel passport. The detail is when I try to login with the second table I can not do the authentic...
asked by 29.11.2018 / 21:13
0
answers

Divide results of a query in two different positions in Laravel

I need to divide the result of a query into two different positions, the positions would be the following: <table> <tr> <td>Aqui el 50% de los resultados</td> <td> Aqui otro tipo de contenido&...
asked by 30.11.2018 / 00:40
0
answers

How to use a unique validator in several models

You see, I have 2 models, called Type and Category. Both have as unique variable a string called name. To handle your forms, I have this validator: public function rules(){ return[ 'nombre'=>'required' ]; } With this I ca...
asked by 29.11.2018 / 11:09