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

Tripik's avatar

loadRoutesFrom(): Failed opening required

Hi everyone :)

Completly new to laravel (learning), I've created a project on localhost (W10 with Laragon, PHP 7(point)3(point)27, Laravel 8, Jetstream), the whole thing works as intended :) :)

Then I've cleared all caches and uploaded the project to the web hosting server, this is when things get messy :(

Symfony\Component\ErrorHandler\Error\FatalError
Illuminate\Support\ServiceProvider::loadRoutesFrom(): Failed opening required '/home/project/routes\fortify(point)php' (include_path='(point):/usr/local/php7(point)3/lib/php')

I've tried to clear cache manually again and set file permissions to 755 for "fortify(point)php", but I don't clearly know where to search.

Does anyone's already had this issue ?

(sorry for the (point) but otherwise it is spotted as a link)

0 likes
3 replies
automica's avatar

perhaps try dumping your autoload

composer dump-autoload
Tripik's avatar

Hi Automica, Thanks for your help :) I don't think it worked, here is the output :

Generating optimized autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Symfony\Component\ErrorHandler\Error\FatalError

  Illuminate\Support\ServiceProvider::loadRoutesFrom(): Failed opening required '/home/project/routes\fortify(point)php' (include_path='(point):/usr/local/php7(point)3/lib/php')

  at vendor/laravel/framework/src/Illuminate/Support/ServiceProvider(point)php:144
    140▕      */
    141▕     protected function loadRoutesFrom($path)
    142▕     {
    143▕         if (! ($this->app instanceof CachesRoutes && $this->app->routesAreCached())) {
  ➜ 144▕             require $path;
    145▕         }
    146▕     }
    147▕
    148▕     /**


   Whoops\Exception\ErrorException

  Illuminate\Support\ServiceProvider::loadRoutesFrom(): Failed opening required '/home/project/routes\fortify(point)php' (include_path='(point):/usr/local/php7(point)3/lib/php')

  at vendor/laravel/framework/src/Illuminate/Support/ServiceProvider(point)php:144
    140▕      */
    141▕     protected function loadRoutesFrom($path)
    142▕     {
    143▕         if (! ($this->app instanceof CachesRoutes && $this->app->routesAreCached())) {
  ➜ 144▕             require $path;
    145▕         }
    146▕     }
    147▕
    148▕     /**

      +1 vendor frames
  2   [internal]:0
      Whoops\Run::handleShutdown()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255

Tripik's avatar

I was wondering, the path to "fortify(dot)php" uses a backslash, should'nt it be a slash like the rest of the path ? In this case how can it be modified ?

Please or to participate in this conversation.