Questions tagged as 'laravel'

0
answers

doubt roles laravel 5.5

I have the following code in a blade template, and I have given admin permissions to the entire menu, the question is ... what can I do if I want to give permission to two other users to that same menu? Is there any way to do this? @exte...
asked by 04.12.2018 / 02:31
0
answers

How do I get the longitude and latitude where the user is in laravel?

I write this time because how can I get the longitude and latitude of the user who started the session ?, am I working with laravel or should I add google maps, also how can I get the 10 closest cities? although if it does not find the same I vi...
asked by 27.11.2018 / 13:28
2
answers

array_key_exists (): The first argument should be either a string or an integer

I get this error when I try to Save to the Store public function store(Request $request) { $files = $request->file('links'); $destinationPath = 'boletines'; if($request->hasFile($files)){ $cliente = $request->i...
asked by 26.11.2018 / 19:29
1
answer

Deposit several selected users one by one in database,

The problem that occurs is the following I have a table with checkbox, I click on several to be sent with a file that you select, by clicking on the button to upload file to each user that you select in the view . This is the controller's method...
asked by 22.11.2018 / 18:48
0
answers

Problem with Count laravel

I have the following which works perfect but if I want to also bring another data like the user_id that is inside the same table where I do the count it gives me an error. Alquilen knows what the solution might be? public function scopeCantida...
asked by 21.11.2018 / 15:27
0
answers

Share variable in Laravel controller

I am doing an intranet for my work, it is a production control (We are a printing press, the platform is to know in which department each work is at each moment). The platform consists of different phases (departments), jobs, clients and workers...
asked by 11.11.2018 / 16:21
1
answer

LARAVEL - Using bcrypt in a column with tinker

I know that using tinker I can create new records based on a model. $user = new App\Datos; >>> $user->name = 'jeff'; >>> $datos->email = '[email protected]'; >>> $datos->password = bcrypt('12345'); But...
asked by 06.12.2018 / 16:51
1
answer

update a laravel real-time datatable

helpme                 Name <th scope="col">Nombre proyecto</th> <th scope="col">Aprobado </th> <th scope="col">No Aprobado</th> <th scope="col">Abstencion</th> </tr>    @forea...
asked by 06.11.2018 / 16:58
0
answers

I do not update the database using php artisan migrate

It turns out that I am trying to add new tables using the Laravel migration system. I am running from CMD php artisan migrate and then I put php artisan migrate: status to see the status of each migration, which does not upload me to the DB (alr...
asked by 06.11.2018 / 22:27
0
answers

PHPUnit test error csrf Laravel, in gitlab CI / CD docker

I am having problems when writing POST requests in the integration tests, in the local machine where I launch the tests they pass without problems, but in the docker container of gitlab fail by the token csrf, even if I put the token in the peti...
asked by 19.11.2018 / 22:14