Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

laravel with Inertia/vue in subfolder

I deployed my laravel 11 app in a subfolder on my hosting and it works (only public folder is in subfolder, the app itself is in root not publicly accessible off course). The prod asset build I had to ...
Canelo Digital's user avatar
0 votes
2 answers
53 views

Login Route and Controller

My Blade file code is like below. <form action="{{ route('login') }}" method="post" class="row mt-4 align-items-center"> <input type="hidden" name=&...
abu abu's user avatar
  • 6,978
-2 votes
1 answer
37 views

403 Forbidden in Laravel

Description: Whenever I visit the URI '/storage/decode/hello' the 403 error is shown, but when I go to '/storage/decode' URI, then the code works perfectly fine. Route::prefix('storage')->match(['...
Diwash Mainali's user avatar
0 votes
2 answers
104 views

Laravel optional route params not working

I have to setup a multi-language application with Laravel 11, this is the first time that I use multi-language feature in laravel, I will not use any package, I will set it manually, so I prepared ...
MAHA OUEGHLANI's user avatar
0 votes
0 answers
40 views

The GET method is not supported for route /. Supported methods: HEAD

The GET method is not supported for route /. Supported methods: HEAD. After i have developed the laravel app without prefix and with /backend in RouteServiceProvide like this <?php namespace App\...
Sheikh Abdullah's user avatar
0 votes
1 answer
55 views

Get path without arguments

In my api.php file, I might have a path that says Route::post('/this/thing/{variable}' In another part of my codebase, when a request is made to that route, I can get the actual requested route with $...
TKoL's user avatar
  • 13.9k
0 votes
1 answer
63 views

Laravel 8.2: Encountering a 404 Error on Route Access

When I run my Laravel project locally, I do not get any 404 errors, but when I transfer it to the server, I get 404 errors on some pages. There is no problem on the listing pages, but I cannot access ...
Bufo's user avatar
  • 1
2 votes
2 answers
228 views

Laravel API Route Returns 404 Despite Correct Setup in routes/api.php

I'm working on a Laravel API project, and my /api/events route is returning a 404 error even though I’ve set up the EventController and the route in routes/api.php. Despite having the server running ...
Huda Ala'eddin's user avatar
1 vote
1 answer
319 views

Laravel Livewire 3 | get current route in component

I need route based header that why I want to check route on each request and then I display my header as per requirement. public function render() { dd(request()->route()); // testing request ...
shazim ali's user avatar
0 votes
0 answers
36 views

Adding a CNAME record to a customer subdomain

My Laravel app allows customers to create their own subdomains using the framework's built-in subdomain routing: Route::domain('{domain}.example.com')->group(function () { Route::get('/user/{id}...
Cameron Scott's user avatar
-1 votes
3 answers
388 views

Target class [admin] does not exist. Laravel 11

I'm new to coding and I'm currently working on a project where I'm encountering an error that's preventing me from moving forward. Note that I had to add the Kernel.php file manually because it did ...
Romain Du Boullay's user avatar
0 votes
0 answers
181 views

127.0.0.1 refused to connect ERROR when accessing a link

I'm using Laravel 11 and the latest bootstrap version to create a button and also Google Project Idx as my code editor. I got 127.0.0.1 error message when I click the button which is linking to a ...
Maga Brodi's user avatar
1 vote
0 answers
40 views

Route [daftar_mahasiswa] not defined in Laravel

I am working on a Laravel project and encountered an issue where I can't navigate to the "daftar mahasiswa" page. Instead, I get redirected back, and I see the following error message: [...
DITZ's user avatar
  • 13
0 votes
1 answer
61 views

Why Laravel routes registered in module custom service provider not available on url?

I'm refactoring backend part of existing Laravel 10 + Vue 3 SPA app to Modules that among other things contain route files that registered in module service provider: class ...
Kiazim Khutaba's user avatar
0 votes
2 answers
41 views

laravel anchor tag href and value are different

Anyone who experience this issue with anchor tags at laravel , I encounter an issue which href shows correct url href="job but the properties value shows = jobs/jobs. I don't have any issue with ...
j. Red's user avatar
  • 7
0 votes
1 answer
84 views

Laravel lockout listener doesn't trigger

Basically, I'm developing a simple user management system as my first Laravel project and I'm having some trouble with setting a listener for account lockout events. Laravel offers a account lockout ...
Matheus Caetano Rocha's user avatar
0 votes
1 answer
59 views

How I can move route founded in routes\auth.php to routes\api.php?

routes\auth.php Route::middleware('guest')->group(function () { Route::get('register', [RegisteredUserController::class, 'create']) ->name('register'); Route::post('...
Al'a Salah's user avatar
1 vote
2 answers
68 views

laravel new update, omits api.php and i can't use it

since the LARAVEL omits the API.PHP, when I define the routes, Route:: API Resource('students', Student Controller::class); and I access http://localhost:8000/api/students I get "The route API/...
Murtaza's user avatar
  • 21
0 votes
2 answers
363 views

Missing required parameter for update route laravel 11

I have an error Missing required parameter for [Route: updatetransaksi] [URI: penjualan/update/{id}] [Missing parameter: id]. web code route::get('/penjualan/edit/{id_penjualan}', [...
Dia Siapa's user avatar
0 votes
1 answer
27 views

Laravel my sorting filter doesn't work but i have no error or no messages

//my route Route::get('catalogue/{categorie?}','App\Http\Controllers\CatalogueController@index')->name('catalogue'); //my function function index($categorie = null ) { if($categorie) ...
user avatar
0 votes
1 answer
57 views

Laravel : i have this message "page not found" without any error

//my route Route::get('catalogue/{categorie?}','App\Http\Controllers\CatalogueController@index')->name('catalogue'); //my controller namespace App\Http\Controllers; use Illuminate\Http\Request; ...
user avatar
0 votes
1 answer
72 views

How I resolve different routes on an application using same url but different port?

In my case I want to create a small monolith but: Admin panel will be served upon port 8443 Normal app will be served upon port 80/443 I am using laravel 11 and the route config resides on different ...
Dimitrios Desyllas's user avatar
0 votes
1 answer
81 views

Can't Auto Fill Form When Trying To Edit - CRUD

Hello I was trying to use the Edit function from Laravel CRUD with resource. The problem that I got is that the form is not filling any of the old data that I already created using the value="{{ ...
NyK's user avatar
  • 3
0 votes
0 answers
31 views

Eloquent Sluggable getting wrong record and not scoping based on route parameters

I have one route like this: /vehicles/vehicle-one/projects/project-one And another route like this: /vehicles/vehicle-two/projects/project-one I am using the Eloquent Sluggable package to handle the ...
ryanpitts1's user avatar
0 votes
0 answers
83 views

The GET method is not supported for route (to delete). Supported methods: DELETE. (I'm using Post & Delete)

I have implemented a modal to delete objects in my project, the problem is that when I click delete, it tells me that I am using a get method even though I use a post/delete method. <form id="...
Raúl García's user avatar
0 votes
1 answer
55 views

Laravel controller not recieving the data sent from form

When trying to send data from a searchbar form to a route controller the data cannot be reached by using the $request->input("name"). How can i fix this? Controller class SearchController ...
Lucas Kantola's user avatar
1 vote
1 answer
96 views

Can't delete file properly, error 404 not found

why doesn't my form delete files as it should, laravel displays the error message 404 not found. I created a delete button and issued a form with capital. <button type="button" class=&...
Irfan Chaniago's user avatar
0 votes
1 answer
35 views

the patient card is not displaying permanently

I'm trying to create a patient card which is automatically added to the "seated waiting" zone at the beginning it showed me the card and in a fraction of a second it disappeared how can I ...
maria's user avatar
  • 5
0 votes
2 answers
61 views

Im getting error 404 Not found on Postman when testing my routes

This is my the code that is contained in my Migration File of Category Table: <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\...
Mohamed Humaam Athif's user avatar
0 votes
0 answers
33 views

Dynamic url calling using slug failed in Laravel

I am working on a business listing website and using following routes working fine Route::get('/', [HomeController::class, 'index'])->name('home'); Route::get('/country/{country}', [...
Sonics McClaine's user avatar
0 votes
0 answers
93 views

The server returned a "405 Method Not Allowed". for one route only

This route in web.php for main page Route::get('/', 'App\Http\Controllers\IndexController@index'); if i run php artisan optimize, or artisan route:cache, the page become error 405 Oops! An Error ...
sql query's user avatar
0 votes
2 answers
67 views

Routing issues in Laravel project

I am working on a Laravel project where I have three types of admins, each with their own login pages. Here are the routes: // Core Admin Routes Route::get('/core-admin', [CoreAuthController::class, '...
Sheraz Ali's user avatar
0 votes
1 answer
75 views

POST requests to specific Laravel 10 API endpoints unexpectedly execute web routes instead of api.php routes

I'm working on a REST API project with Laravel 10. Despite having properly configured the Laravel API routes for endpoints (/dp and /dj), POST requests to these two endpoints unexpectedly execute web ...
DFYZ's user avatar
  • 5
0 votes
0 answers
41 views

Sending Inertia response to post request with single id without full component re-render

I am trying to create a stepper flow in React using Inertia and Laravel. I have created an Inertia post request, but when I hit that in the backend, the document I am trying to create gets created. ...
Shivank sagar's user avatar
0 votes
0 answers
141 views

Laravel RouteNotFoundException for route 'login' in custom middleware

I'm encountering an issue with Laravel where I'm getting a RouteNotFoundException for the route 'login' within a custom middleware. namespace App\Http\Middleware; use Illuminate\Auth\Middleware\...
Hocine Djouamaa's user avatar
1 vote
1 answer
97 views

Laravel form action not accepting $order->id but accepting hard coded value

I debugged the code using {{ dd($order->id) }} and received the order id value of 100238. However, when I used the following: <form action="{{ route('admin.pos.update_order', ['id' => $...
Sarmad Engineering Solutions's user avatar
0 votes
1 answer
78 views

How to use Laravel routes with a column other than id and query another column too

I want to build a Laravel route which uses a booking number in the URL and not the row id. As the booking number column is not unique, I also want to pull the row that also matches the company id ...
Will Perkins's user avatar
-3 votes
1 answer
97 views

Laravel 10 partially unescaping back JSON strings with \n \r escape sequences inside [closed]

In my Laravel 10 test project I have an issue with JSON files that are read from storage folder and served as simple text output into the browser. If there is a string field with \r and/or \n escape ...
P5music's user avatar
  • 3,317
0 votes
2 answers
47 views

Submitting the form using POST method also how do I get the parameters in url

Trying to submit the form using POST method and also getting the parameters via url. While accessing website.com/profile/ it doesn't work. It returns this error message The GET method is not ...
Karuppiah RK's user avatar
  • 3,954
0 votes
0 answers
41 views

problem with laravel view not extending layout.blade.php with out assets file . What can possibly be the problem?

for my college project , I am using a template view called (home_layout.blade.php) to be my layout for other views , it was working well before but i made a new view and when extending the home_layout ...
Mohimen 's user avatar
0 votes
0 answers
41 views

Regex Patterns in Laravel Routes for Complex URL Structures

I want to define variables with the brand token in the URL. My brand token here is /brand/. My URL: http://localhost:8000/tools/main_category/supplier/sub-category1/sub-category2/brand/brandName I ...
Umut Korkmaz's user avatar
0 votes
0 answers
25 views

Missing required parameter for [Route: history_form.createHistory] [URI: history_forms/createH/{school_student}] [Missing parameter: school_student]

I have a problem on my project. Here is the error: Missing required parameter for [Route: history_form.createHistory] [URI: history_forms/createH/{school_student}] [Missing parameter: school_student]....
Fernando Dopazo's user avatar
0 votes
0 answers
118 views

Laravel catch-all routes

I looking-for solution to make all routes more readable and shorter. It's any good solution for routes to make it like below: localhost/{cityNameSlug} localhost/{companyNameSlug} localhost/{...
kicaj's user avatar
  • 2,948
1 vote
1 answer
5k views

Laravel Inertia check current route In JSX file?

I need to check current route in one of my .jsx files to display a specific component, is there a way to imitate Laravel's Route::is() feature? For now I do the following: // helpers.js export ...
dogakorkmaz's user avatar
-1 votes
1 answer
126 views

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException.The GET method is not supported for this route. Supported methods: POST

i've started learning laravel recently, working on this password reset api, but i've been dealing with this error whenever i clicked on the forgot password line on login page. Here's the web.php: ...
ChaMuc's user avatar
  • 1
1 vote
3 answers
65 views

The POST method is not supported for route tickets/BDkkh9ef. Supported methods: GET, HEAD

I want to submit a form using .on('submit', function (event) I get this error and can't figure out why. the error shows for all these tickets route not just the example I am posting. Here is the route ...
Hagar Maher's user avatar
0 votes
0 answers
58 views

The requested resource /assets was not found on this server

I get this message The requested resource /assets was not found on this server. when I visit this link http://127.0.0.1:8000/assets. I have these route in my web.php Route::resource('assets', ...
Hagar Maher's user avatar
-1 votes
1 answer
74 views

Specifying a directory when using PHP use statement?

I'm working on an old Laravel project and in the api.php routes file, there is code like the following. use App\Http\Controllers\Api; use App\Http\Controllers\VendorApi; Route::get('/some-route', [...
Josh's user avatar
  • 898
-1 votes
1 answer
57 views

The POST method is not supported for route

i just want to send form data on the url given in ajax if there are any post regarding this issue please share with me I am getting view on routeRoute::get('/MedicalHistory/', [PatientController::...
Amir Tariq's user avatar
0 votes
0 answers
33 views

Automatic redirection to Laravel default page in POST method

I'm throwing a bottle into the sea, I'm using Laravel to design a pro project for API implementation. Since yesterday, the framework has a behavior that I have difficulty resolving, in fact when I ...
Mathieu SIaudeau's user avatar

1
2 3 4 5
69