Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other Laravel projects get failure when one of them calls an API #20207

Closed
martinrios95 opened this issue Jul 21, 2017 · 4 comments
Closed

Other Laravel projects get failure when one of them calls an API #20207

martinrios95 opened this issue Jul 21, 2017 · 4 comments

Comments

@martinrios95
Copy link

  • Laravel Version: 5.0.35
  • PHP Version: 5.6.30
  • Database Driver & Version: MySQL 5.7.17-log (Windows 10 64-bit)

Description:

When I was running a function on routes section on my Laravel project (path-to-project/app/Http/routes.php), my developer partner, working in another project but in the same framework and host (we're using the same development-web-server to work on distinct projects), had a syntax error on a query my partner had to get, referencing my database I was working.

The function calls Google Maps API to search and update geographic coordinates, the HTTP-request makes it on JSON.

Then, when the script finished, my partner could continue working as well.

Steps to Reproduce:

  • Start working on a Laravel project and make a script on routes.php:
    Route::get('home', function(){ // Put your database code or call an API... });
  • Then, run it on your browser...
  • In another browser tab, get into another Laravel project and run it. It'll display a message.
@morloderex
Copy link
Contributor

@martinrios95 This is a server configuration problem on your end.

@martinrios95
Copy link
Author

martinrios95 commented Jul 21, 2017

But neither Apache Server or PHP made me a fatal error, only MySQL-related. All the projects we work are on my dev-server. Oh, I forgot, we work on AppServ 8.4.0 (PHP and MySQL version were updated due to technical reasons)...

@sisve
Copy link
Contributor

sisve commented Jul 22, 2017

Two sites on Apache on Windows? Upgrade to Laravel 5.4 (since 5.0 is no longer supported) and run php artisan config:cache on both sites.

@martinrios95
Copy link
Author

Thank you! I've found the problem... It was related from PHP-dotenv issue here.

So, I'll try upgrading Laravel and see if this problem disappears from the sites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants