Questions tagged as 'laravel'

0
answers

Group Data - Collection Laravel

I need to group the data of a SQL function in Indicators and Data, but in my attempt to group, I'm only getting by date (Column), so the data repeats. Model: public static function makeCluster($date, $flag_negocio) { /** @var static $in...
asked by 04.11.2018 / 05:25
2
answers

How to upload a Laravel pro server project

I did some things to test Laravel, I did everything in my localhost with Xampp and Composer, now I need to upload to DreamHost and I'm not getting it, when I try to access the project on DreamHost I get a 500 error code, upload it all the projec...
asked by 08.11.2018 / 13:58
0
answers

How to fix the error: Argument 2 passed to App \ Providers \ AuthServiceProvider

I wanted to put two policies, one for if the user already registered did not appear the anchor participate and the other if the user created the event appear the edit and delete buttons, but only works the second, as I do so Does politics partic...
asked by 09.11.2018 / 13:24
1
answer

Laravel problem with php artisan serves

I'm following a lesson from Laravel 5.6, and during class, I created the project in laravel, already with all the tools installed. NPM, Composer, Xampp etc. Then I ran the command: composer create-project --prefer-dist laravel/laravel proje...
asked by 30.10.2018 / 02:04
0
answers

How to customize Laravel authentication for external api token

I'm doing an application that is just the "front", the whole backend part (authentication, DB, etc) is done by another application, I access everything via REST. The login for example, I send via REST the email and the password, and it return...
asked by 29.10.2018 / 23:02
1
answer

Get data pivot table Laravel

How can I get the pivot table data using Laravel Eloquent? I need to know which setor_id of users and group_id linked     
asked by 27.10.2018 / 03:14
1
answer

Error sending email in Laravel 5.7 - Swift_TransportException

Hello, I am trying to send an email using Laravel 5.7, and I had some problems. I wrote a view for my email. I then send the email rendered by the Controller, as follows: Mail::send('admin.eventos.pessoa', ['pessoa' => $pessoa], funct...
asked by 26.10.2018 / 22:59
2
answers

I have a problem in the ManyToMany relationship in laravel if someone ouder help me?

Sorry, but I'm new to laravel, you're giving this error when I try to view the page: 'Trying to get property' name 'of non-object This is my controller public function index(){ $medicos = Medico::with("especializacaos")->get();...
asked by 28.10.2018 / 19:06
0
answers

How to consume e-social webservice with php

Hello, I'm challenged to make a system communicate with e-social webservice using php with laravel framework, but I have no clue how to proceed. The system is used to register employees. I made the following test with the php SoapClient class...
asked by 02.11.2018 / 08:19
1
answer

Validate CPF in Laravel's RegisterController class

I downloaded the link package to perform cpf validation on my system. I followed the documentation instructions by putting the ValidatorProvider in app.php. In my system of registration, I would like only valid CPFs to be saved. However, I...
asked by 16.11.2018 / 16:22