I just deployed my Laravel project to the webserver. I added the austintoddj/canvas package. Now I have the following structure on my server.
public_html -> contains the original public folders contents (.htaccess points to index.php and in index.html the path is changed to search in myBlog) - That part is working as expected
myBlog -> contains everything else, however when I installed the package mentioned above it created a public folder with a vendor in it that is used by the package and that is the part which is problematic. The CSS and JS files are not seen.
I have a .htaccess in the root of my myBlog project.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>`
If I try to run the project locally with php artisan serve everything works perfectly, but when I try to run it with XAMPP I get the same result as in the web server (the UI elements not loading).
Have anyone encountered that before? Don't really understand with its not loading up the files.
I tried to put everything in public_html it works but security-wise it's not a good idea, also tried to debug with no luck.