Questions tagged as 'laravel-5'

1
answer

How to use multiple authentication passport in Laravel?

the file auth.php I have the following code 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'passport', 'provider' => 'users',...
asked by 15.06.2017 / 18:23
0
answers

Laravel graphic reports with charts

Hello I need help to pass the results of my query to the charts but I do not know how. those 3 values that I got from the query By Dispatch Dispatched Planned I have to place them - > values ([78,10,20]) I'm using link This is my controller...
asked by 15.06.2017 / 02:56
2
answers

Insert array in MySQL table with Laravel 5.4

I have a form like this: What I want is that when selecting two or more sports, add a row for each sport with the id of the selected name, until now in my database is stored as follows: And here is my Controller code: $data =...
asked by 30.06.2017 / 16:53
0
answers

Upload file to an ftp server Laravel 5.3

Trying to use the Laravel-FTP plugin Ajax: function subir_archivo(archivo){ console.log(archivo); $.ajax({ type: 'post', url: 'materiales/subir', data: { archivo: archivo }, }).the...
asked by 10.06.2017 / 05:28
1
answer

ErrorException Property [path_foto] does not exist on this collection instance. Laravel 5.4

Good morning, I have the following function in a laravel driver public function Show ($ id) { $configuracion = FrontConfiguracion::find(1); $contacto = FrontDatosContacto::find(1); $areas = FrontAreas::find($id); $funci...
asked by 14.06.2017 / 06:43
1
answer

Laravel | Problem with bootstrap / cache / compiled.php

I've been having a problem with running composer update in my production repository for a while. Only in production, in DEV and PRE does not happen to me, they all have the same configuration and in the end they pull almost from the same...
asked by 14.06.2017 / 17:33
1
answer

Is it possible to pass from SQL code to laravel migrations?

I tell you ... I have a very large database, and the truth is that I would not have problems in elbowing 20 or 25 tables within the migrations of PHP / Laravel. The problem is that they are 97 tables, mostly moderately large. .. To the point...
asked by 25.06.2017 / 09:29
0
answers

Show all users online in Laravel 5.4

I'm wanting to show all the users currently connected and I came up with the following way, which I do not know if it's the right one. First I detect the event when the user logs in and redis sets a session variable: Redis::set('user:id:' ....
asked by 16.06.2017 / 15:08
1
answer

TokenMismatchException in VerifyCsrfToken.php line 67: How to get token

I try to save a note through the Store method with a request POST to the path /categorias , if I log in the system works correctly, but I have no idea how to do it through of PostMan, I understand that it will never be possible be...
asked by 02.06.2017 / 23:55
1
answer

Records not associated with a user?

I need to get all Services that are not associated with the requests which are associated with a user . So basically the models are <?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User...
asked by 08.06.2017 / 17:08