Laravel-Backpack / community-forum

A workspace to discuss improvement and feature ideas, before they're actually implemented.
28 stars 0 forks source link

[Bug] #891

Closed raffanugraha17 closed 3 months ago

raffanugraha17 commented 3 months ago

If i run php artisan backpack:install

the problem appears, continously:

INFO Checking Backpack Basset installation.

Initializing basset check ................................................................................................................... DONE
Checking cache storage ...................................................................................................................... DONE
Fetching a basset .......................................................................................................................... ERROR

ERROR Error fetching the file.

│ Backpack Basset failed to check it's working properly. │ │ This may be due to multiple issues. Please ensure: │ 1) APP_URL is correctly set in the .env file. │ 2) Your server is running and accessible at http://localhost. │ 3) The public disk is properly configured in config/filesystems.php. │ Optionally, basset provides a disk named "basset", you can use it instead. │ 4) The storage symlink exists and is valid (by default: public/storage).

Tell me how to fix it, this make me mad:)

o15a3d4l11s2 commented 3 months ago

Hi, @raffanugraha17, can you please share few more details:

  1. What is your APP_URL from the .env file - it shows as http://localhost but want to double-check.
  2. Is your app accessible through this url http://localhost
  3. What development environment are you using - Laravel Herd, Laravel Sail, Laravel Valet, Laravel Homestead, Artisan Serve or something else

Feel free to share any other information that you have, like what you have already tried and what was the outcome.

raffanugraha17 commented 3 months ago
  1. My APP_URL it shows https://localhost/ i check it several times.

  2. My app is accesible through that URL, i run it works well no complaint.

  3. Development environment that i use is Artisan Serve.

For continously, maybe i can ask again or private chat?thank you.

pxpm commented 3 months ago

@raffanugraha17 php artisan serve, serves the app in: http://127.0.0.1:8000 image

That should be the thing you add on your APP_URL. localhost is just a fallback in your system that points to 127.0.0.1.

Cheers

raffanugraha17 commented 3 months ago
  1. My APP_URL it shows https://localhost/ i check it several times.

  2. My app is accesible through that URL, i run it works well no complaint.

  3. Development environment that i use is Artisan Serve.

For continously, maybe i can ask again or private chat?thank you.

Wait i run it.

pxpm commented 3 months ago
  1. My APP_URL it shows https://localhost/ i check it several times.
  2. My app is accesible through that URL, i run it works well no complaint.
  3. Development environment that i use is Artisan Serve.

For continously, maybe i can ask again or private chat?thank you.

Wait i run it.

You should set in your .env file: APP_URL="http://127.0.0.1:8000"

If you have other questions feel free to open a new thread in our https://github.com/Laravel-Backpack/community-forum/discussions/ with the relevant information.

Also probably a lot of the questions you may have while you are starting are the same previous developers already had, you can go to https://github.com/Laravel-Backpack/ and on the top search, try to find relevant information for your issues as they may have already been answered.

image

Let me know if you are still experiencing issues.

Cheers

If n

raffanugraha17 commented 3 months ago
Screenshot 2024-03-21 at 17 58 47

The new problem appears, what should i do? please help me mr.

pxpm commented 3 months ago

you need to run that command while php artisan serve is running, so you should use 2 terminals. (your server need to be running so that basset can call it to fetch the test asset).

I would highly advice you to install some easier to work devtool like Laragon https://laragon.org/index.html (I am not affiliated, but I use it regularly). It will make your local development life easier.

Cheers

raffanugraha17 commented 3 months ago

Okaay sir, thank you i should try first.

jcastroa87 commented 3 months ago

Due to no activity, I will close the issue, but please feel free to re-open or create a new one.

Cheers.