I installed Symfony 5 using the $ composer create-project symfony/website-skeleton my_project_name command with the intention of getting the most complete Symfony package possible.
After configuring my Controller and the routes, I started coding the Twig template using Bootstrap 4 via CDN and the page rendering worked normally.
When I decided to configure the Bootstrap files in my location and no longer via CDN, I realized that the asset() function did not return the path of the files stored in the "public" folder.
The same occurs with other files and directories located inside the "public" folder.
I checked my "composer.json" file and the asset is configured in the following version:
"symfony/asset": "5.1.*"
It is correctly installed in the "vendor" folder.
Here is an example of using the function in my code in the "base.html.twig" file:
href="{{ asset("bootstrap/css/bootstrap.css") }}
I redid the steps for installing the "asset" component following the instructions in the documentation below and I also did not get any results:
https://symfony.com/doc/current/components/asset.html
I would like to know if anyone has been through it and if they have any solution for it.
Thankful.