Questions tagged as 'laravel-5'

1
answer

Duda numeric format in laravel 5.5

what difference there is between such a variable. $numero = 1; and a number that comes from this way. $valorusuario = $request->numero; Is there a way that the number that comes from $valorusuario can convert it to the format...
asked by 13.11.2018 / 02:15
3
answers

get data from a pivot table

I am working with laravel 5.4 ... I have a question that may be quite simple to answer but I could not find the solution, I have a table state and another called organization to these two unites an intermediate table called state_organization wh...
asked by 13.10.2018 / 21:50
1
answer

Alias in virtual host in project Xampp in Laravel 5.6

I currently have a project created in Laravel 5.6, create a virtual host to be able to access using the url proyecto.com:8003 . Apparently to be able to access my project I must place the port at the end of the URL because it is not the de...
asked by 11.10.2018 / 19:11
1
answer

Center texts in DomPDF

I have the following form: @include('layouts.estilo') <h1 class="text-center card-title">{{$articulo->titulo}}</h1> <hr> <img class="card-img-top" src="{{url($articulo->foto->ruta())}}"/> <hr> <h3 clas...
asked by 31.10.2018 / 10:21
0
answers

CREATE MORE TEXTFIELD OCN LARAVEL BUTTON

I do not have a clear idea of how to do it, so I need your opinion, I explain: I need that when you press the "+" button, add the textfield "Name", "Add Input", "Input", "Unit of Measure" and "quantity", down. Any Solution or help?    ...
asked by 20.10.2018 / 15:57
0
answers

Correct use of Laravel Service Container

I have a class which is responsible for making a request to a REST API which needs the name of the player and the platform on which it plays (I will simplify the code to get to the point). class GetPlayerAPI { public function __construct(...
asked by 01.10.2018 / 03:25
0
answers

Problem when reloading page

I have my routes configured, when using them directly they work very well, but I have two of them that when you reload the page or refresh it, an error appears, like this, 1. "", I do not know what that means, however I also pass what it shows a...
asked by 25.10.2018 / 04:59
0
answers

Why would JWTAuth not accept Barer in the token, laravel?

I currently have a token authorization with the JWTAuth library, this generates the token correctly when my credentials are correct. The problem arises when I try to send the token from AngularJS, the method is done in the following way: va...
asked by 24.09.2018 / 05:04
0
answers

Laravel route not found, but if it is defined

I have defined a route in the Laravel web routes file: // Rutas para el Product Route::resource('product', 'ProductController'); Route::get('/product/download', 'ProductController@download')->name('product.download'); The download meth...
asked by 21.10.2018 / 20:51
0
answers

Laravel 5.6: php artisan migrate --path is not working

I want to use only the migrations that I have in the database/migrations folder since I have other migrations from a package that I do not want to use anymore. I'm using the php artisan migrate --path=/database/migrations command,...
asked by 16.09.2018 / 05:11