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

All Questions

Tagged with
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
24 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
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
0 votes
1 answer
47 views

How to revoke token in Laravel Sanctum?

I wrote a simple REST API with Laravel 11. I tested authentication and it looks like the token generated by Sanctum is not revoked despite that I delete the way the documentation writes. class ...
inf3rno's user avatar
  • 25.6k
0 votes
0 answers
48 views

How to import CSV in Laravel?

I want to make a CSV import using the maatwebsite/excel package. I have made the codes. And the data format that I want to import is as below: Trans Date,Eff Date,Trans Description,Trans Code,Debit,...
Hilmi Hidayat's user avatar
-1 votes
2 answers
78 views

Base table or view not found: 1146 Table 'example_app.sessions' doesn't exist

I am trying to set up Laravel 11 on Windows 11. I am using WAMPServer for Apache/PHP/MySql. I have installed the installer globally using Composer. I then run this command to create a Laravel project: ...
Joshua Rogers's user avatar
0 votes
2 answers
64 views

Laravel 11: BindingResolutionException: Target class [hash] does not exist during app bootstrap

I have just created a fresh Laravel project and installed Sentry for exception logging. Here is my bootstrap/app.php: <?php use Illuminate\Foundation\Application; use Illuminate\Foundation\...
Moddaser Hossain's user avatar
1 vote
1 answer
43 views

Laravel repository method helper file is not loaded

i am using folder structure like project/ project-repository/ src/ User/ UserInterface.php UserRepository.php composer.json ...
Laravel coder's user avatar
0 votes
1 answer
34 views

CKEditor 5 " Cannot Upload File : [Filename] " in Laravel 11

I want to upload an image to Ckeditor, but when I upload it to the text editor, I can't public function upload(Request $request) { if ($request->hasFile('upload')) { $...
Rezki Andika's user avatar
0 votes
0 answers
35 views

Livewire Component Redirects to /livewire/update one time in Production but Works in Development

Issue: I'm building a full stack Laravel 11 application with Livewire. In development, everything works fine, but in production, when I make the first component update, it redirects me to GET /...
Twfyq Bhyry's user avatar
0 votes
0 answers
87 views

Composer class not found error on class alias in Laravel

Problem intro: I'm implementing a custom caching solution that utilizes a file store but still allows tagging. For this, I've installed some packages which are irrelevant to the question (I do ...
geertjanknapen's user avatar
0 votes
0 answers
73 views

Error in Filament\Support\Services\RelationshipJoiner

I am currently learning to use Filament, but I encountered an error that says, Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints(): Argument #1 ($relationship) must be of type ...
Piddd's user avatar
  • 1
0 votes
0 answers
42 views

tearDownAfterClass not being invoked with PHPUNIT 11 and LARAVEL 11

I cannot figured out why the tearDownAfterClass() is not being called. PHPunit version: "phpunit/phpunit": "^11.2" Laravel version: "laravel/framework": "^11.10&...
Sergio Costa's user avatar
0 votes
0 answers
22 views

Laravel Socialite Login Error with Google Sign-In

I am trying to implement socialite into my laravel project where users can login with their google accounts. Here is my usercontroller file <?php namespace App\Http\Controllers; use Illuminate\...
Toby Manurung's user avatar
0 votes
3 answers
123 views

CSRF token mismatch error in response when submit a form in laravel 11 application

I am using Laravel 11 for build a application in which a admin panel i have created and created a front-end website. In front-end website a form is exist. when i submit a form than request is not ...
Asheesh's user avatar

15 30 50 per page
1
2 3 4 5
8