@lawiszxc Check your browser’s console. You have errors.
@martinbean I saw the console log but I can't recognize what is the problem
Wow. 10MB of (minified) javascript to load a login form.
Your login form is trying to post to http://localhost:8000/api/web/login so you have hard coded URLs somewhere
@snapey is it recommended to change the api's url ?
@Snapey that was my url since I created that so what should I do to call my api's?
@lawiszxc Your API URL obviously needs to point to your production URL and not your local machine.
use the config('app.url') helper or one of the Laravel url generators to dynamically create the URL and never hard code URLs into your application
@lawiszxc only a suggestion, if you are creating an API and not sure about how to set everything up maybe you need to hire someone to help you.
I also suggest a security audit.
Edit:
Have you considered taking the free laravel lessons from here?
@Snapey
APP_NAME=Laravel
APP_ENV=production
APP_KEY=base64:Wl0vp+aiK+dwqav9EZVEvSpu0kxUqUERE2UMabQ9ze0=
APP_DEBUG=true
APP_URL=http://bubbles-laundry-system.great-site.net
is that correct ?
I changed this also
const token = localStorage.getItem('token');
axios.defaults.baseURL = 'http://bubbles-laundry-system.great-site.net/api';
axios.defaults.headers['Authorization'] = Bearer ${token};
const app = createApp(App);
app.use(router);
app.use(VueSweetalert2);
app.mount('#app');
@lawiszxc Yes, but that is not where the problem lays.
The problem is in your javascript where you post the requests to the server
@Snapey how to do that ? please help me sir :(
Please or to participate in this conversation.