laravel / sail

Docker files for running a basic Laravel application.
https://laravel.com/docs/sail
MIT License
1.65k stars 470 forks source link

Hi, I have a problem with base_path #676

Closed Xsaven closed 6 months ago

Xsaven commented 6 months ago

Sail Version

1.28.1

Laravel Version

10.46.0

PHP Version

8.3

Operating System

macOS

OS Version

14.2.1

Description

Good afternoon, I launched sale using the sale up command and received the following error in the browser:

image

It turns out that here in the code base_path returns the wrong path:

image

I checked the getcwd function on which base_path is based and it returns the wrong path, the path with the public /var/www/html/public. I checked this in tinker as well and in tinker the path is returned correct /var/www/html.

Steps To Reproduce

sale up -d open in browser 0.0.0.0

driesvints commented 6 months ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.