Skip to main content

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
1 answer
7 views

How to add a custom clause to a subfield relationship with an accessor attribute in Backpack for Laravel Version 6?

I have a subfield relationship that I need to show using an accessor attribute: reverse_full_name. This works fine, but I need to add a scopeIsActive clause to limit the options for selection. When I ...
Bluebox's user avatar
  • 383
0 votes
0 answers
7 views

All URLs that consist of a single word after the domain are redirected to the FilamentPHP login page

All URLs that consist of a single word after the domain are redirected to the FilamentPHP login. For example, /brands is redirected to /admin/login, and if within the route it changes to brands/list, ...
little's user avatar
  • 1
0 votes
1 answer
35 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
27 views

Laravel Sanctum 'Token miss match'

I'm working on a Laravel 11 project where I'm using Laravel Sanctum for authentication in my SPA (Vuejs3). My setup includes a backend and a frontend hosted on different subdomains, and I'm running ...
Thebest's user avatar
  • 21
0 votes
0 answers
37 views

Laravel Sanctum 'Access-Control-Allow-Origin' Error

I'm working on a Laravel 11 project where I'm using Laravel Sanctum for authentication in my SPA (Vuejs3). My setup includes a backend and a frontend hosted on different subdomains, and I'm running ...
Thebest's user avatar
  • 21
0 votes
0 answers
20 views

Can use the route found in api.php in another file in the routes directory laravel 11?

I need to localize the API web application, especially the auth pages in the lang directory but I have a problem with how to use the route in auth.php instead of api.php in the routes directory. Note ...
Al'a Salah's user avatar
0 votes
0 answers
42 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
0 answers
23 views

Getting htmlspecialchars(): Charset "UTF-8;" is not supported, assuming UTF-8 Error in Laravel Breeze Application

I am developing a Laravel application using Laravel Breeze for authentication. When I try to access the login or register pages, I encounter an HTTP 500 error. Here are the details of the error from ...
Alaa ElAlfi's user avatar
-1 votes
1 answer
44 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
0 answers
34 views

Laravel 11 Uncaught BadMethodCallException: Method Illuminate\Foundation\Application::configure

Getting an error Uncaught BadMethodCallException: Method Illuminate\Foundation\Application::configure vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php on line 86 It works fine ...
Gauttam Kevadia's user avatar
-2 votes
1 answer
58 views

Laravel 11 middleware not working it says it doesn't exist [closed]

Here is my bootstrap app middleware file: <?php use App\Http\Middleware\AdminMiddleware; use App\Http\Middleware\RegistrarMiddleWare; use Illuminate\Foundation\Application; use Illuminate\...
Ivan Adrian Muñoz's user avatar
0 votes
0 answers
15 views

I cant update and image with put method on Laravel inertiajs

I have three files here: Edit.vue, FormComponent, and a resource method that allows only PUT and PATCH. When I submit without an image, the update method works, but when I attach an image in the form, ...
Mostafizur Rahman's user avatar
0 votes
1 answer
41 views

How to run a JavaScript method after livewire component update and re-rendering?

I want to run a javascript method called makeFinalAdjustments(), but it needs to happen after the page has finished re-rendering the content following a click event inside this livewire component: //...
Urbycoz's user avatar
  • 7,351
0 votes
0 answers
41 views

how localize authentication pages with api, when I have install breeze auth packege?using laravel11

Http\Middleware\SetAppLang.php public function handle(Request $request, Closure $next): Response { if (! in_array($request->segments(1), config('app.available_locales'))) { ...
Al'a Salah's user avatar
0 votes
2 answers
44 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

15 30 50 per page
1
2 3 4 5
17