Questions tagged as 'laravel'

1
answer

Authentication Required (packagist.org)

I'm trying to create a project in laravel with the command: composer create-project --prefer-dist laravel/laravel blog But you are requiring authentication: Authentication required (packagist.org) Username: Password: I do not...
asked by 08.11.2017 / 20:13
1
answer

How to make Wamp design for Lamp

I have a laravel project that I finished done in Windows (wampserver) using Laravel 5.2 in php 5.5.12 working perfectly. I would like to know how to copy it to the server that is in CentOS 7. What is PHP 7. If I install Laravel on it it will...
asked by 23.10.2017 / 15:50
1
answer

Laravel and Ajax - Doubt about route

Using the laravel 5.5 framework, how do I call the following route in Ajax? Route: Route::group(['prefix' =>'paineladmin', 'namespace' =>'PainelAdmin', ], function(){ Route::post('galeriaArquivos', 'GaleriaimgController@arquivos')-&g...
asked by 20.10.2017 / 19:19
2
answers

How to create a calendar task with laravel [duplicate]

I'm trying to work with cron for the first time and trying to create a very simple scheduled task. I was looking at the documentation and saw that this command needs to be executed * * * * * php /path/to/artisan schedule:run >> /dev...
asked by 07.04.2017 / 15:29
1
answer

Laravel 5.7 - Ajax call and Session :: get ()

There are days when I'm banging my head to read data from a Session through a ajax call . In an application without Framework I do this normally using PHPSESSION , but in Laravel 5.7 I can not do it at...
asked by 26.10.2018 / 15:05
1
answer

Update with hasMany relationship for two inputs at the same time in laravel

Well the problem that happens is the following, I have in my application the field phone that is present in a relationship to personFisica then a person has a relationship hasMany for phones and that in turn has a belongto for good person up ther...
asked by 25.07.2016 / 06:33
1
answer

Doubt storageAs Laravel 5.4

I was with my local Laravel project, and I use this code to save my images: $request->profile_photo->storeAs('empresas/perfil', $filename, 'public'); Now I have hosted my project, to host I had to get the folder public from the...
asked by 21.11.2017 / 19:17
1
answer

Laravel 5.4 and Dompdf - problems?

I'm trying to generate a PDF from a view , and it's working fine, however, when I call the route to call controller , the loading stays for several seconds, until minutes to generate the PDF, and download, not to mention that you are...
asked by 15.07.2017 / 15:21
1
answer

Using JWT with Laravel

I'm using JWT to generate TOKEN access to my system ... So far it's okay, I'm getting my API and it returns me a Token. The problem is in the following scenario. - My intention is to work with API in my Web application and would reuse this sa...
asked by 22.03.2017 / 01:53
1
answer

How to return data array with join in Laravel with DB class?

I need help with this SQL of Laravel : $process = $db->table('processo')->where('nrprocesso',$id) ->leftJoin('viatransporte', function($viatransporte){ $viatransporte->on('processo.idviatransporte', '=', 'viatra...
asked by 19.03.2017 / 16:03