Questions tagged as 'laravel-5'

1
answer

Select2 multiple just choose a value

Good afternoon guys, I'm working with a multiple select2, the problem I have is that when inento changes the value of the element (which should be 3 items) this only chooses the first of the array, here my code: Creation of the select2 elemen...
asked by 30.04.2017 / 20:42
1
answer

How do I save an XML file with Laravel?

I'm trying to save the xml file with laravel but I can not do it $xml = new \DomDocument('1.0', 'UTF-8'); $raiz = $xml->createElement('raiz'); $raiz = $xml->appendChild($raiz); $nodo = $xml->createEle...
asked by 17.05.2017 / 22:35
1
answer

Accents in session flash de laravel 5.2

It turns out that I am sending messages to the views, through the class Session and its method flash documentation: Session-> Flash But at the moment of sending an accent, in the view it brings me the code as if it did not hav...
asked by 13.04.2017 / 16:40
0
answers

How to use this token to validate the start of the session, AngularJS?

I am currently controlling the login with a WebService in laravel using the following library: JWTAuth Here is the method in laravel: public function userAuth(Request $request) { $usuario = $request->input('usuario'); $pa...
asked by 09.04.2017 / 08:22
0
answers

How to put the json results of guzzlehttp in blade view?

I have been reading for several hours, I have been investigating how to get the data from the http query with guzzle but I can not solve it. I need a little help on how the response received should be formatted. I want to treat the string as Jso...
asked by 29.03.2017 / 19:41
1
answer

Change the default login.blade login to my header Laravel 5.4

I am trying to change my default page login when one does make: auth (login.blade.php) when changing it to my header but I do not understand why it does not work, if apart from the styles to place it in the header everything is the same as the o...
asked by 27.03.2017 / 08:19
1
answer

Middlewares Laravel

I am new to laravel and I have a redirection problem. I get this message on the page:    ERR_TOO_MANY_REDIRECTS This happens when I put the validation of required, if I remove it if it works, could you tell me why?: <?php namespace...
asked by 24.03.2017 / 18:30
1
answer

Seeding a Json in Laravel

Laravel 5.3 allows migrations with json $ table-> json ('links_normal'); But in the seed DB::table('courses')->insert([ 'name' => 'Curso Nuevo', "links_normales": { "Opcion 1": "xd", "Opcion...
asked by 08.03.2017 / 06:21
0
answers

Routes in laravel 5.4

In the application that I do, the routes from the virtual server (Homestead), work without any problem, but when I run the application in local environment, for a LAN, the routes do not load, that is to say, I do not exist the files. Any sugg...
asked by 09.03.2017 / 19:01
1
answer

MYSQL error SQLSTATE [HY000] [2003] when connecting to a remote database

I would like for you to please help me with this problem. I have two virtual machines in virtualbox the first on the web server (192.168.0.20 centos 6.8) and the second is the database server (192.168.0.50 centos 7) I have created a laravel a...
asked by 11.02.2017 / 19:36