Font-face issue in Laravel - laravel-5

After fixing '/public' URL using solution provided at link Laravel 5 - Remove public from URL , there is new problem arise where the custom fonts in style.css stopped working.
Followed the solution provided by user #ka_lin , everything is working fine except the font-face.

Related

Laravel SPA (laravel + vuejs + sanctum) deployed in subdomain returns wrong api

I have this problem since several days.
I'm developing a Vuejs/laravel app, using Sanctum as an authenticator. where laravel mainly have the api gestion role, and I've started to deploying it. On Local, everything looks fine, api and auth are working.
On deploy, since my app is binded to be in a subdomain (laravelapp.maindomain with folder path of domain/laravelapp), when i try to access any page (vue-router) instead of domain/laravelapp/login i get domain/login, even if the page itself is looking fine.
If i try to reload the redirected page (domain/page) i have a 404. Also, since every API is pointing to domain/api/link instead of domain/laravelapp/api/link, everything is broken starting with auth.
I've tried modifying .env file, RouteServiceProvider, .htaccess(but i have no knowledge about that).
I also tried to set the subdomain Document Root to domain/laravelapp (it's the first thing i've done), but not only it dosn't work, if I try to print on screen subdomain's root, it returns domain. It's becoming a real issue right now, thank you for any help.
EDIT: I've discovered something. in the main domain there is a Joomla application. The api route contains the Joomla redirect (like, there is a plugin oh the site that changes language automatically, appending /en /it /de given the chosen language). So, in my case, the api is domain/index.php/en/subdomain. I tried again being more specific with document root, with no results, and playing around with .htaccess, but with no success.

Heroku server not loading tailwind css styles with my laravel project

I deployed Laravel with Tailwind css on Heroku and my vanilla CSS for the home page is working fine but when I add /login to the address to move to laravel breeze login page, Tailwind css isn't loading.
This is the link for the homepage: https://zarafah.herokuapp.com/
And this is the login page which tailwind is not rendering: https://zarafah.herokuapp.com/login
When i checked the network tap on google chrome it shows like this:
enter image description here
This is driving me crazy because on my local serve everything works perfectly.
I ran npm run prod and npm run production and made sure of everything but still I can't find out what is the issue.
I'm using Laravel 8 with Tailwind css v3.
you have a http link for the css
change it to https
https://zarafah.herokuapp.com/css/app.css
and it should work

webcache behave differently then site

http://webcache.googleusercontent.com/search?q=cache:www.domain.com - when I navigate by this URL , it render me 404 page on my site , but when I go directly on my site , it works properly and there isn't 404 page , all work fine , is webpache parse it differently , or what can be the problem , how can I find out the issue ?
I have found this issue https://github.com/ReactTraining/react-router/issues/5801, but don't see any solution on this topic , I use readt-router
https://medium.com/#georgejustin22/why-google-web-cache-is-not-as-important-for-seo-as-you-think-ce4026c1eb6d found this article and understood that this isn't much important to see there data, it shows 404 because your site executed on another domain and it react-router doesn't work properly, it doesn't match your route and render last page on your routing , in my case for sure it was 404 page

Laravel 5.6 Routing doesn't work

First, I am not new to Laravel. I don't understand why this problem happens. I'm working with Laravel on Homestead. When I first load app, welcome screen appears. Then I change routing, "Sorry, the page you are looking for could not be found" appears. I remove all the routing web.php file, delete welcome blade file, again reload root url welcome page appears. Though I don't have any route in web.php and welcome.blade.php file. I clear cache, try some different things, but same thing happens again.
your problem is with homestead and not with laravel , the welcome page you seen is not the laravel welcome page.
Try to make the correct path for your project directory . and follow the laravel homestead doc

Laravel File Manager dosn't load css, js files

I integrated Laravel File Manager in my laravel project and at first it worked properly, but after I remove public [ I followed this instruction remvove public from url ] from url it din't work anymore. The css file is missing and browse file also din't work. I tried to include those files**[css, js]** into head section also din't work. It still show like this
I have no idea how to fix this error. Can anyone help me please?

Resources