Questions tagged as 'laravel'

1
answer

My images do not appear in laravel

In a Project in Laravel, I want to upload an image. Like this <img class="logo" src="{{ asset('images/'. $pet->image) }}"> Since the images are in the public folder But, tell me this Failed to load resource: the server res...
asked by 27.01.2018 / 11:17
1
answer

Javascript does not recognize "Certain chains"?

I have a button (MODIFY) that when you press it puts in an input type = text the input value of a form. It does fine with normal numbers , but not with numbers 1B: 3B: 3B: 4B: 5B: 6B or with 1C-3C-3C-4C-5B -6B It does not even ent...
asked by 02.12.2017 / 19:31
1
answer

Times consultation with Guzzle supposedly parallel mind does not work

I am trying to consult several different webservices in parallel with Guzzle (in laravel ), but when I take time, I understand that it is being done sequentially, one by one, instead of all together and at the same time. The individ...
asked by 27.11.2017 / 15:52
2
answers

Consult with related tables?

I am trying to generate a query with related tables, I have a call deposits, which keeps the id of other 4 tables, users, states, banks and types, but when I do the query, I only manage to bring the ids of the others tables, and not the names, I...
asked by 01.12.2017 / 17:04
1
answer

return two views in a Laravel 5.5 driver

I would like to know if I can return two views in a laravel driver, the version I have is 5.5 and I am trying this way: Driver: $info1 = [ 'datos' => $datos1, 'nombre' => $nombre...
asked by 30.11.2017 / 14:52
1
answer

Redirect error when paging in laravel

Good morning, I am currently doing a project in laravel 5.2 I have been developing a simple search engine, but I have had one or another problem with paging, always when I make a query through the search engine and decide to go to the next pa...
asked by 20.11.2017 / 21:26
1
answer

What is the best way to deal with different user roles?

I need you to guide me as to the best way to control various types of users, I currently have 3 (Admin, user, editor), the role field I have in the users table as an integer (0,1,2), they can increase the number of roles. What is the best or mos...
asked by 20.11.2017 / 10:57
2
answers

Laravel - Assign a value in an option of a select!

Hello (I'm just learning), I need in the value to assign the value of the id. Example: <option value="{{$idcategoriacuenta}}">{{$categoria}}</option> The problem is in the array () I do not know how to send the value o...
asked by 20.11.2017 / 05:57
1
answer

Where should the data be validated, in the model or in the controller?

Initially we know that the validations from javascript must be obligatory, my doubt is in the driver or model. Normally I perform validations of laravel validation in the controller, taking into account that these validations perform the assi...
asked by 21.02.2018 / 22:24
2
answers

How can I generate a URL to view a file (word, pdf, excel) with google docs viewer

I'm working with laravel 5.5 and I came across this way of using google docs viewer: <iframe src="https://docs.google.com/viewer?url=AQUÍ URL DEL DOCUMENTO&embedded=true" width="600" height="780" style="border: none;"></iframe>...
asked by 05.12.2017 / 20:14