normykinz's avatar

Laravel Folio Beta

I thought I'd play about with Folio just for fun.

Had some problems installing with composer require laravel/folio:^1.0@beta but composer require laravel/folio worked. I ran the install command and created a Folio page with php artisan make:folio user/profile. The route shows up with php artisan folio:list but looking at it in a browser showsfollowing exception ...

Laravel\Folio\Exceptions\PossibleDirectoryTraversal

Running on Windows 11 using Laragon and Apache.

Any ides what's going on?

0 likes
1 reply
LaryAI's avatar
Level 58

The exception Laravel\Folio\Exceptions\PossibleDirectoryTraversal suggests that there might be an issue with the file path or directory structure in your Folio installation.

Here are a few steps you can try to resolve the issue:

  1. Make sure you have the latest version of Laravel Folio installed. Run the following command to update the package:

    composer update laravel/folio
    
  2. Check if the user/profile Folio page exists in the correct directory. By default, Folio pages are stored in the resources/folio/pages directory. Verify that the user/profile.blade.php file exists in that location.

  3. Ensure that the route for the Folio page is properly defined. Open the routes/folio.php file and check if the route for user/profile is present. It should look something like this:

    Route::folio('user/profile');
    
  4. Clear the Laravel cache by running the following command:

    php artisan cache:clear
    
  5. If you're using Laragon, make sure that the Apache web server is properly configured and running. Check the Laragon documentation for any specific configuration steps required for Laravel Folio.

If the issue persists, it might be helpful to provide more details about your directory structure, Laravel version, and any additional error messages you encounter.

Please or to participate in this conversation.