I hosted my laravel vue spa on heruko and its only loading an empty page. I have added nodejs webpack but still, it does not come. please I need help to work this out package.json "scripts": { "dev": "npm run development", "postinstall": "npm run prod", "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js –progress –hide-modules –config=node_modules/laravel-mix/setup/webpack.config.js", "watch": "npm run ..
Category : single-page-application
I have created an application in Nuxtjs and the data is coming from Laravel API, now I need to add SMO meta tags, but the problem is that the data is coming from the API when it’s rendered in the browser and social media can’t handle such thing. It’s a SPA application. Sourc..
I am working on a project using Vue + Laravel where I use axios for AJAX requests to get data from controllers and display it on the js end but while using nested for loop it does not work and I feel some strange behavior from the loop inside js. Below is the function in ..
i am working on my new project and technology stack is: laravel 8 + Livewire V2 + Jetstream, to create a single page application (SPA). but I am still confused if its possible SPA in my selected technology stack or not. I know Livewire no longer supports Turbolinks out of the box so they provided ..
I’m having a trouble on how to implement Single Page Application on Laravel blade php file format using Vue-router, is that possible?.The reference link below says that it is impossible to use SPA on php file format and I’m here to ask to confirm if this is not possible, but I guess there is other ..
I am creating a Single Page Application using Laravel 8, Vue and Sanctum for API. If I use Jetstream for authentication there is compulsory to use another js Inertia. and according to documentation its saying "you will use Laravel’s router instead of Vue router." Can I use Jetstream without the inertia or without laravel router? ..
I’m relatively new to Laravel and have created a shopping cart project. I have managed to finish the project but would like to make it into a single page application, the purpose is to allow adding an item to cart without refreshing the page. I have read the livewire documentation but is unsure of how ..
Please how do I update/modify a Vue SPA file after hosting on a shared host server? every time I want to modify some files, I have to download or modify them from my local server, run production before pushing it back to the shared hosting server. Please is there a better way of editing/modifying live ..
I have two Laravel applications. One lives on the main domain and the other is on my subdomain. Let’s suppose example.com and sub.example.com. These two have different databases, (e.g. laravel for main domain and laravel_sub for sub domain) And only the main domain (example.com) has Laravel Passport integrated. I want it so that when I ..
I want to use laravelsanctum with SPA Authentication, where Laravel is backend api and Vue is frontend SPA. I do all manual says about it, but I faced with problem: when my logout route in api.php Route::post(‘/logout’, [AuthController::class, ‘logout’]) is under middleware(‘auth:sanctum’) I couldn’t logout the user because of error: Method IlluminateAuthRequestGuard::logout does not exist. ..
In my DB i’ve got a list of names with specifics origins. In my navbar, i’ve got a link for each origin. I’m new in angular and my first approach was to create a "page" for each origin. My question is : is there any shortcut for doing that? like : on click on the ..
i’m building an API for a single page application (spa) that is completely separated (different domain) what is the best approach for authentication ? passport,sanctum? Passport is a good choice but its kinda complicated i can’t understand it and i don’t need the oauth feature .. i just want an access token and maybe a ..

I activated SPA mode on Laravel 8 Jetstream Livewire, I found name and email been empty when I click user/profile endpoint from other page, it will show the name and email when I refresh the browser. Sourc..
What is the difference between API token and SPA authentication? I cant understand when is the best time to use either of each. Sourc..
I recently installed a fresh Laravel Vue Spa Project and I wanted to use a custom theme, CoolAdmin Template instead of the one that came with the project. But one of the js script main.js is refusing to work, load or fire up. Therefore the hamburger menu, dropdown menus and so many other, are not ..
I have spa on domain A and a Laravel server on domain B I wanted to use sanctum but the cookies are only working in same domains so what u suggest is there any way around this? and I don’t want to use token base AUTH on sanctum Sourc..
I am developing a Vue SPA. I am using Vue as frontend, Laravel 7 as backend for api and Laravel Sanctum for authentication. When I execute the command "npm run serve" in Vue root directory I see the following lines. App running at: Local: http://localhost:8080/ Network: http://192.168.0.100:8080/ Everything is working fine when I use the ..
Frontend: localhost:3002 Backend: sanctum.local how to config these tow fields in the env file: SANCTUM_STATEFUL_DOMAINS= SESSION_DOMAIN= when I try to login I get 419 unknown status. Sourc..
I’m new to Livewire & last two weeks I working with this. But I can’t implement a SPA feature which is whenever I click on a menu the new page will come without page refreshing like Vue JS, How I can implement this feature in Livewire like Vue JS ?? Sourc..
so I am working on a big LMS (learning management systems) project which it’s backend is supposed to be implemented with Laravel and it’s front end with angular 10 framework , my question is how to integrate them to work together in Single page application (make the routes with angular ) not with mvc . ..
I have an Angular 9 SPA with a Laravel 7.x API using Laravel Passport (Personal Access Tokens) for authentication. While in development, every now and then I would like to act as a different user in order to test authentication/permissions. I dont exactly know how to do that cleanly with Laravel Passport. In the past, ..
I have an Angular 9 SPA with a Laravel 7.x API using Laravel Passport (Personal Access Tokens) for authentication. While in development, every now and then I would like to act as a different user in order to test authentication/permissions. I dont exactly know how to do that cleanly with Laravel Passport. In the past, ..

Hello I am using Laravel Framework 6.18.23 and when ever my Vue app connects to the API it deducts more than what I expected. Here is the sample screenshot below As you can see I tried to login in my app 3 consecutively but laravel deducts more than 3 on a x-ratelimit-remaining. Additionally the x-ratelimit-remaining ..
I have just finished frontend in Vue and backend is done is Laravel. Both the projects are standalone.Now I want to call api from vue to laravel backend.I don’t know idea how to connect these two projects.Both the projects are in local server(Lampp). Sourc..
I wondering if it’s possible to use the SPA login(from Vue) using Laravel Sanctum to also authorise for Laravel Horizon? I’ve done much googling and can’t find an answer to this. So far I’ve just had to make do with creating a custom middleware for Horizon that uses Auth.basic, which isn’t as user friendly as ..