Category : single-page-application

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 ..

Read more

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? ..

Read more

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. ..

Read more

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 ..

Read more

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 ..

Read more