Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [laravel-11]

Laravel 11 is the current stable version of the open-source PHP web framework created by Taylor Otwell. It was released on March 12, 2024. Please use the [laravel] tag for general Laravel-related questions.

0 votes
0 answers
9 views

Can html5QrCode use with Livewire3?

I have a button to open the modal for scanning the barcode get the result to an input and click the submit button after finishing scanning. My JavaScript code works fine with my Laravel project. After ...
JiimyBoii's user avatar
0 votes
0 answers
6 views

Trying to configure Socialite with SAML2 in Laravel 11

I am trying to follow the instructions from https://laravel.com/docs/11.x/socialite and https://socialiteproviders.com/Saml2/ I have run composer require laravel/socialite composer require ...
Tyson of the Northwest's user avatar
0 votes
1 answer
10 views

Laravel Dusk + Sail - ERR_CONNECTION_REFUSED

I started a new Laravel application using Sail to have local development running in Docker, so it already started with a selenium/standalone-chrome container also. Installed Dusk following docs, but ...
fudo's user avatar
  • 2,658
0 votes
0 answers
36 views

React Form Submission Logs Updated Data but Does Not Update Database or Navigate to Tasks Page

now i 'm creating endpoint for editing task for to do app using laravel and react.js the end point i tested it using postman and it returns success response http://localhost:8000/api/tasks/4 and the ...
Gamal Sobhy's user avatar
0 votes
2 answers
32 views

Laravel 11 Simplest Gate possible but returning always unauthorized

I'm trying to make a gate so that only some users are authorized to make certain API calls, but before that, I have to at least set up a gate properly which I can't seem to do. Here I set up the gate: ...
Juan Moreno's user avatar
0 votes
0 answers
12 views

Laravel API authentication: Sanctum + Breeze

I just started a new Laravel application. For API authentication I installed Sanctum and it seems working right: testing API route authentication in feature tests using Sanctum::actingAs() assert ...
fudo's user avatar
  • 2,658
0 votes
0 answers
53 views

Authentication works in Laravel 11, but it returns null . Why?

In Laravel, I can sign up and log in without any issues using Breeze. In my table, I have: $table->enum('role', ['admin', 'user']); Here’s how your bootstrap/app.php file looks: <?php use App\...
Serdar Kavrazlı's user avatar
1 vote
1 answer
25 views

Laravel Auth Session Text

simple and easy question from a newbie... I have a new setup of laravel11 and implemented the login and registration function with verifyMail from the documentation. Everything works fine. I also can ...
sxbxstxxn's user avatar
0 votes
0 answers
23 views

use $this->authorizeResource in __construct() method in laravel controller

this my __construct() method : public function __construct(){ $this->authorizeResource(Event::class, 'event'); } but i have this error: Undefined method 'authorizeResource'. I saw a tutorial ...
Hossein Nazari's user avatar
0 votes
1 answer
31 views

Unable to Add Product to Cart in Vue.js + Nuxt 3 + Pinia Store

I've been struggling for days to get my Vue.js application to add products to the cart using a Pinia store. My backend is built with Laravel, and I'm making API requests to add items to the cart. ...
David Buik's user avatar
0 votes
0 answers
29 views

Laravel 11 cors error- has been blocked by CORS policy: Response to preflight request doesn't pass access control check:

Access to XMLHttpRequest at 'https://laravel-react-survey-form-production.up.railway.app/api/signup' from origin 'https://laravel-react-survey-form.onrender.com' has been blyour textocked by CORS ...
Mark Daniel Edillor's user avatar
-1 votes
0 answers
51 views

How To generate codes for differnt kinds of users [duplicate]

I have a table users where i have 3 kinds of users Admin, Customer and User now i want to auto generate codes such as A000001 for admin and the number would keep on adding as admins increase, C000001 ...
Adarsh Kumar Singh's user avatar
-4 votes
0 answers
29 views

Class "ZipArchive" not Working in laravel 11 [duplicate]

In laravel 11 I'm trying to zip a file. It response this error: Class "ZipArchive" not found. I globally imported the class and installed the zip extension. Here is the code: $zip = new \...
gokul's user avatar
  • 31
0 votes
0 answers
14 views

Spatie Browsershot Image Watermark - position and general issues with docs

I'm trying to add a watermark to an image that has been captured by the Spatie Browsershot package. The image is working great, even the watermark is, but I can't make any modifications to it. I'm ...
Andrew Fox's user avatar
0 votes
0 answers
29 views

UpdateForm.js:78 PUT http://localhost:8080/api/items/4 422 (Unprocessable Content)

I was working on a Small Personal Project of mine of learning purposes. Using ReactJs as Frontend & send requests to Laravel API as Backend. The CRUD application I made is almost complete but the ...
Aarish Mughal's user avatar

15 30 50 per page
1
2 3 4 5
18