Questions tagged as 'laravel-5'

0
answers

Connect Heroku application to an external (Mysql) database

I'm testing a laravel build in Heroku, but I wanted to use an external database that I have on a shared server. I have already set the environment variables and also added the variable DATABASE_URL = mysql: // username: password_db @ host: 33...
asked by 22.01.2018 / 19:30
0
answers

Which version of phenx / php-svg-lib should be informed in the composer?

I am trying to install the package composer require barryvdh/laravel-dompdf but when it arrives in package phenx/php-svg-lib all possible versions that settler in composer is not accepted and package is not installed; I s...
asked by 20.01.2018 / 21:29
0
answers

Version 5.3 Laravel with php 5

Good afternoon. I use Laravel version 5.0 and one of the requirements of this version is that php has to be greater than or equal to 5.4. So far so good, my php installed is 5.6.32. But I wanted to start using version 5.3 of Laravel and th...
asked by 24.01.2018 / 20:40
0
answers

Install Laravel with Laradock

I just installed docker and consequently laradock, how do I install laravel now? since the composer command does not work     
asked by 15.01.2018 / 15:25
1
answer

SQL Server Connection on laravel

Well, I have the following error: tcp provider: no connection can be made because the target machine has actively refused them. I'm using a bank created on my own machine, it's with the ODBC drivers, firewall disabled, however I use wamp to r...
asked by 11.01.2018 / 16:52
0
answers

Save JSON data using Laravel

When saving data to the MySQL database with the JSON column using Laravel . It inserts the data this way: "{\"publish\":1,\"start_date\":\"2018-01-06\",\"start_time\":\"00:00\",\"end_date\":\"2018-01-09\",\"end_time\":\"00:00\"}" How d...
asked by 04.01.2018 / 19:12
1
answer

Check if record already exists, if already exists just link

I want to check if the address has already been registered, if it is already registered I just want to link it to a civilian, but if it does not already exist I want to register the new address and then link. The relationship is 1 civilian has O...
asked by 21.12.2017 / 17:08
1
answer

Error in making listing

Trying to get property of non-object: @foreach($civis as $civil) <tr> <td>01</td> <td>{{$civil->matricula}}</td> <td>{{$civil...
asked by 18.12.2017 / 17:15
1
answer

Register N for 1 and N for N?

How do I sign up for a relationship 1 for N and N for M , I am doing this but : $endereco = new endereco; $endereco->complemento = $request->complemento; $endereco->logradouro = $request->logradouro; $endereco->bairro = $r...
asked by 18.12.2017 / 20:55
2
answers

Restful API authentication error with PHP cURL

I am writing a web platform that uses the API RESTFUL of SPTrans - Live Eye . Authenticate my session with the code: <?php $url = 'http://api.olhovivo.sptrans.com.br/v2.1/Login/Autenticar?token='.token; $curl = curl_init($url...
asked by 14.12.2017 / 17:39