Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kgwhatley's avatar

Digital Ocean not executing uploaded files correctly

My Laravel app works fine locally. Another version of it works fine on Digital Ocean when I upload it. When I upload the latest version I get errors. I upload the app to Digital Ocean using Forge from a git repository.

The issue behaves as if the application can't see these changes even though they are there. It is like the old files are cashed. I have erased all the files to reset the service, uploaded the old version (and it works) and restarted the service with no effect. I have downloaded the files via FTP to check if the changes are uploaded, they are there.

In the current version I have made a number of changes to the login process to rename items to signin and signout. I have changed the routes in the Router.php file:

public function auth()
{
    // Authentication Routes...
    $this->get('signin', 'Auth\SigninController@showSigninForm')->name('signin');
    $this->post('signin', 'Auth\SigninController@signin');
    $this->post('signout', 'Auth\SigninController@signout')->name('signout');

    // Registration Routes...
    $this->get('signup', 'Auth\SignupController@showSignupForm')->name('signup');
    $this->post('signup', 'Auth\SignupController@signup');

I have tweaked the controllers, views and the AuthenticatesUsers trait, eg.:

/**
 * Show the application's login form.
 *
 * @return \Illuminate\Http\Response
 */
public function showSigninForm()
{
    return view('auth.signin');
}

When I go to /signin I get the following error in Whoops: (1/1) InvalidArgumentException Route [signin] not defined. in UrlGenerator.php (line 304) at UrlGenerator->route('signin', array(), true) in helpers.php (line 705) at route('signin') in Handler.php (line 68) at Handler->unauthenticated(object(Request), object(AuthenticationException)) in Handler.php (line 114) at Handler->render(object(Request), object(AuthenticationException)) in Handler.php (line 52)

After moving the routes from Router.php to web.php the error moved upstream be: (1/1) BadMethodCallException Method [showSigninForm] does not exist. in Controller.php (line 82) at Controller->__call('showSigninForm', array()) at call_user_func_array(array(object(SigninController), 'showSigninForm'), array()) in Controller.php (line 55) at Controller->callAction('showSigninForm', array()) in ControllerDispatcher.php (line 44) at ControllerDispatcher->dispatch(object(Route), object(SigninController), 'showSigninForm') in Route.php (line 203) at Route->runController() in Route.php (line 160)

0 likes
3 replies
bashy's avatar

Did you enable PHP OPcache by any chance?

kgwhatley's avatar

It was enabled. I disabled it, but no change. phpinfo: opcache.enable Off. I have turned it back on now.

Please or to participate in this conversation.