Posts by Fabio Ferreira • 97 points
5 posts
-
-1
votes2
answers4766
viewsA: Registration of boletos Caixa Webservice SOAP WSDL PHP
You can use the Guzzle library, the best option for working with HTTP requests in PHP. Curl is also an option, but I prefer Guzzle. Guzzle…
-
1
votes3
answers2910
viewsA: Routes accessible only to users logged in to Laravel?
Another option is to group the routes you want to protect, this way: Route::group(['middleware' => ['auth']], function () { Route::get('sua_url', function()); }…
-
2
votes1
answer769
viewsA: Average between multiple dates in an array
Because at the end of the loop $result stored the two differences (24 + 24 = 48 hours) but divided by the amount of indexes (3). The right thing would be $seconds = floor($result / $count - 1)…
phpanswered Fabio Ferreira 97 -
-1
votes2
answers585
viewsA: Saving in the database
In the archive of your Slim route: $app = new \Slim\Slim(); $app->post('/url_do_post', function () { // Pegue as variaveis $request = \Slim\Slim::getInstance()->request(); $data =…
-
4
votes2
answers4779
viewsA: Responsive font as screen size is adjusted
@media only screen and (max-width: 1000px) { body { font-size: 18px; } } @media only screen and (max-width: 2000px) { body { font-size: 36px; } } Just one detail, the measure in for sources has no…