All Questions
Tagged with javascript laravel
10,453
questions
0
votes
1
answer
34
views
Display an Alert When User Session Expires in Laravel
I am using the Laravel framework and would like to create an alert when the session expires. I tried implementing a JavaScript code that checks if the user is logged in every three seconds as follows:
...
-2
votes
0
answers
26
views
Mapbox display pins from point A to point B [closed]
I have a mapbox with multiple pins.
How can i display only pins from specific A point to specific B point within a radius of 10 km?
Specific points will be typed by the user from two text inputs (A ...
-1
votes
1
answer
57
views
Data not getting into the database
I am trying to send data into the database but unfortunately its returning null...
The button with type="submit" is working well it is saving all the marks of the student at once but the ...
-3
votes
3
answers
80
views
How to decrypt data encrypted using crypto-js in laravel?
I have this bit of code in my js :
export const encrypt = (data, key) => {
const encrypted = CryptoJS.AES.encrypt(
JSON.stringify(data),
key
).toString();
return ...
0
votes
0
answers
27
views
Web Radio API constantly refreshing
I was trying to create a way via Laravel/Livewire to create some sort of Web Socket or otherwise continuous "communicate" with my API end-point. Basically I'm creating a Web Radio that ...
1
vote
0
answers
42
views
I get 401 unauthorized error after successful login in reactjs app with laravel & sanctum
I have created an app with React while using Laravel 10 as back-end (using Sanctum for auth).
When I try to log in on first attempt I get "401: unauthorized" error, but on second attempt it ...
0
votes
1
answer
20
views
Vite will not rollup scripts referenced only in Blade components
I have a Blade component that relies on some JavaScript, which I've put into a standalone module. The only place I need this script is when I'm using the component, so I've removed any mention of it ...
0
votes
0
answers
15
views
Deploying nuxt/laravel site to forge laravel give me an error 500 concerning nuxt chunks
I have an error when deploying the nuxt part of my nuxt/laravel site to forge laravel. I get the following error Cannot find module '/home/forge/my-site.com/.output/server/chunks/app/_nuxt/index-...
0
votes
1
answer
38
views
How to Display Item Quantity Based on Product Selection in Laravel 11?
How to display the quantity of items from the 'item_amount' column when a product name is selected from the 'item_name' selector in Laravel 11, based on the data in the database?
Database
id
...
0
votes
0
answers
23
views
How to Connect Dropbox with Uppy in a Laravel Project Using JavaScript?
I'm trying to integrate Dropbox with Uppy in my Laravel project. I'm using JavaScript and jQuery. However, when I attempt to connect, I'm redirected back to the connection page. Below is the code I'm ...
0
votes
1
answer
40
views
I'm getting 401 Unauthorized when accessing protected routes using http only cookies in Laravel with axios
I'm working on a Laravel application with JWT authentication, and I'm trying to use http-only cookies for authentication. Despite setting the cookie correctly on login, I'm still receiving a 401 ...
0
votes
0
answers
24
views
I am getting cookie empty on controller in laravel
$(".add-to-compare").on("click", function(e) {
e.preventDefault();
var uid = $(this).attr("id");
var vin = $(this).attr("data-vin");
var ...
0
votes
0
answers
19
views
3d Model not deattaching/removing when radio button unselect
The problem is that I am rendering a 3d boat model which has different sections in which there are options with multiple select and single select which are dealt with radio and checkboxes. Now issue ...
0
votes
0
answers
26
views
Why livewire app raise JS error from some moment with 3 related country/state/region fields?
In laravel 10 / filamentphp 3 app I have 3 related country/state/region fields where, when user selects country, then
all states are filled correctly and had problems with filling all regions, but ...
-2
votes
0
answers
33
views
laravel in php at vscode and composer
PHP Fatal error: Uncaught Error: Class "Illuminate\Support\Facades\Route"
I have a question about run route in Laravel . I install composer. but I have a error
please answer my question
...