Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ijpatricio committed Nov 22, 2020
1 parent 45f0236 commit 324a4f6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ APP_DEBUG=true
APP_URL=http://localhost

API_RELATIVE_FOLDER=./../api.laravel.pt
API_URL=http://api.laravel.pt.test/
HTTP_TIMEOUT=10

LOG_CHANNEL=stack

Expand Down
6 changes: 3 additions & 3 deletions app/Http/Clients/RealClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class RealClient extends ApiClient
use LinksClient;
use TagsClient;

protected $timeout = null;
protected $token = null;
protected $apiUrl = '';
protected $timeout;
protected $token;
protected $apiUrl;

public function __construct()
{
Expand Down
4 changes: 4 additions & 0 deletions bin/serve-api
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

cd ../api.laravel.pt
php -S localhost:8001 -t ./public
2 changes: 1 addition & 1 deletion config/laravel-portugal.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

return [
'api_url' => env('API_URL', 'http://api.lpt.test'),
'api_url' => env('API_URL', 'http://api.laravel.pt'),
'http' => [
'timeout' => env('HTTP_TIMEOUT', 10),
],
Expand Down

0 comments on commit 324a4f6

Please sign in to comment.