Questions tagged as 'laravel'

0
answers

Laravel 5 whereRaw returns error but the final query executes correctly in postgres

You are returning the following error when I run my query using whereRaw : SQLSTATE [42P18]: Indeterminate datatype: 7 ERROR: could not determine data type of parameter $ 2 The code snippet responsible for this error is as below: $re...
asked by 21.08.2015 / 21:59
1
answer

Problems inserting integer data into Sybase using Laravel

Hello, I'm having trouble inserting values into tables with columns of integer data type using Laravel 5.1 and Sybase. Error 257 is listed when the exception is thrown. In the Sybase manuals seems to be a conversion problem. I can see that...
asked by 20.08.2015 / 15:11
0
answers

In Laravel 4, how can I convert the result of Model to XML?

In Laravel, how could I transform the following result into an XML structure? $usuarios = Usuario::with('nivel')->where(['status' => 1])->get()->toArray(); // Resultado: [ 'usuarios' => [ 0 => [ 'id...
asked by 07.07.2015 / 16:51
2
answers

Laravel - FPDF error: Undefined font

What I'm doing I'm rewriting a small bar code generation system using Laravel. What went wrong I'm instantiating classes normally, but when I use the $pdf->SetFont('Arial','B',$fontSize); method I get the message FPDF error:...
asked by 18.03.2015 / 18:23
2
answers

Route Post is not being recognized (Laravel)

Well, I'm still new to using Laravel 5, but I have a problem with Routes that can not find a solution anywhere (just the same problem Here and no feasible solution) I'll explain in the routes.php file when I try to define a route using POS...
asked by 17.03.2015 / 01:31
2
answers

Laravel update via composer

   [RuntimeException]   Error Output: PHP Warning: PHP Startup: Unable to load dynamic library /usr/lib/php5/20121212+lfs/curl.so '- /usr/lib/i386-linux-gnu/libgssapi.so.3: symbol krb5_ntlm_init_get_challange, version HEIMDAL_KRB5_2.0 not defin...
asked by 04.03.2015 / 15:13
2
answers

For database abstraction, should I use column names in uppercase or lowercase?

I'm developing an application that will need to connect to any database. I'm using Laravel for this. The Laravel ORM maps the fields of the database and automatically assigns my class as an attribute, but if the column is uppercase, Laravel w...
asked by 22.07.2014 / 12:26
1
answer

HTML treatment with Guzzle Laravel?

I have an application that needs to read external data, ie another URL , I'm necessarily doing it with Guzzle , but when I convert to json to mount the array with the data, it returns null. use GuzzleHttp\Client; use GuzzleH...
asked by 13.08.2018 / 01:55
3
answers

Problem with CORS using Ionic and Lumen

I'm developing an app with Ionic and using Lumen in the backend API. I'm having problems with 'CORS', I already configured the server (both using the internal PHP server and Apache, and the same error occurs in both) creating a middleware for CO...
asked by 19.11.2017 / 15:34
2
answers

NuSOAP using Laravel 4

I'm creating a Webservice on Laravel with the Noiselabs library. Route::any('x/ws/hello', function(){ $server = new \soap_server; $server->configureWSDL('server.hello', 'urn:server.hello'); $server->wsdl->schemaTargetNa...
asked by 05.02.2014 / 15:09