Questions tagged as 'laravel'

1
answer

Laravel on the server Locaweb: Unexpected character in input: '\' (ASCII = 92) state = 1

I'm hosting at Locaweb and it's giving this error.    Warning: Unexpected character in input: '\' (ASCII = 92) state = 1 in   /home/storage/a/b7/b3/reciclaoleovegetal/public_html/public/index.php   online 52       Parse error: syntax...
asked by 25.09.2017 / 15:44
0
answers

How to structure a good controller with Laravel Socialite?

I'm using Socialite to provide authentication via account providers (Facebook, Twitter, LinkedIn ...). In my application, when performing authentication via provider, if there is already an association of the current account of the user wit...
asked by 19.03.2018 / 00:25
0
answers

ACL laravel by field

Is there any solution for access control by input ? Example: a given user can access a form but can not access a given field, another user can access the same form and have access to the field in question.     
asked by 13.04.2018 / 00:28
0
answers

System notification being duplicated

function Notifier() { switch (Url::getURL(2)) { case 'notifier': $render = 'dashboard/Notifier/notifier'; $model = 'notifier/Notifier'; break; case 'inbox':...
asked by 11.04.2018 / 14:14
0
answers

Laravel consuming API and transforming object to array

Next I'm making a request of type get and it's returning me a objeto and I'd like it to be an array, already tried to use $dados= Array.of($response->getBody()->getContents()); But of the error! error Parse error:...
asked by 10.03.2018 / 00:56
0
answers

Form help Laravel

I need to put a value in this Form : {{Form::label('genre','Escolha a categoria') }} {{Form::select('genre',$options->getGenresClassificados(),null,['class'=>'form-control'])}}     
asked by 09.03.2018 / 16:30
1
answer

Consume api with laravel [closed]

I'm looking in the Laravel documentation, in several places, but I'm still unsuccessful. I'm looking for somewhere that has a tutorial on how to consume an api with laravel!     
asked by 09.03.2018 / 23:20
1
answer

Compress image when uploading with laravel

I wonder if anyone has any ideas on how to compress image when uploading, as the image is getting very large. The routine I'm currently using is the one below: public function providerUpdateDocuments() { $inputs = Input::all(); $wal...
asked by 02.04.2018 / 17:57
0
answers

laravel 5.4 passport - authentication 3rd party login

I have this system that I developed. It is developed in reactjs + redux + sagas in the frontend and RESTFUL API in the backend in laravel. BUT in the company where I work, there is a requirement that the login be centralized and provided by a...
asked by 23.04.2018 / 15:56
1
answer

Is organizing laravel migrations in a subfolder bad practice?

I created several migrations that are related to each other, having foreign keys and etc ... but I do not want to mix them with migrations related to auth, permissions and etc. My question is: Can I create a subfolder to organize my migration...
asked by 07.03.2018 / 19:33