Skip to main content
Filter by
Sorted by
Tagged with
3 votes
0 answers
101 views

I'm working on a multilingual Laravel 12 app. All my routes are grouped under a {locale} prefix, like this: Route::prefix('{locale}') ->group(function () { Route::get('/activities/{...
20cnts's user avatar
  • 21
0 votes
1 answer
94 views

I’m running into a routing issue in my Laravel application and could use some help figuring it out. In one of my views, I have a modal that allows users to search for coupons via a small Alpine.js ...
Ric Bocad's user avatar
-1 votes
1 answer
194 views

i have a website made in laravel. if someone type www.example.com/product.php then it should automatically be redirect to www.example.com problem: www.example.com/product.php need solution: www....
vishal panara's user avatar
2 votes
2 answers
47 views

My issue is, even if I added route in web.php then also it gives me 404 not found. My route file as below. <?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\StudentController; ...
Piyush Sapariya's user avatar
0 votes
0 answers
63 views

I am new to Laravel Routing but I am trying to set up initial routes within my application. I have a route set up like this: Route::get('/coach/base/athletes-dash', fn () => view('base::athletes-...
J. Holliday's user avatar
0 votes
1 answer
179 views

New to larvel was trying out a video tutorial...and i got stuck in this basic thing... not too sure what i am doing wrong ... web.php use App\Livewire\ListStudents; use Illuminate\Support\Facades\...
Apurva's user avatar
  • 525
0 votes
2 answers
78 views

If I have route like this. Route::get('/users/{user}/posts/{post}', function (User $user, Post $post) { return $post; }); Then If User id 1 has Post id 1,2,3 and User id 2 has Post id 4,5,6. How ...
ThunderBirdsX3's user avatar
2 votes
1 answer
2k views

In my laravel 11 app I created a route file named admin.php to put my admin routes there. I configured admin.php in bootstrap app.php based on laravel’s documentation this way: return Application::...
Parastesh's user avatar
0 votes
1 answer
337 views

A few days ago I uploaded my laravel project to my hosting with my test domain, in cPanel. There I could see that my vue components were not loading, I did not see the data tables, etc.. Searching, I ...
scorpions77's user avatar
0 votes
0 answers
71 views

I starting to learn php and laravel to make a website. I create a view class named inputdata. From this class, I want to make a route to another view class named KelompokSupir. To connect them, I make ...
Losbay's user avatar
  • 1
1 vote
1 answer
324 views

When I upload my Laravel application to the server, routes are not being updated. For example, I have added the following simple route, at the very top of the other routes: Route::get('/test', ...
Bojan's user avatar
  • 115
2 votes
1 answer
320 views

I want to use a custom template for verification emails being sent by Laravel 11. It generates a verification url, but when I click it, it shows 404 on the browser. Below is my user model where I ...
Ish's user avatar
  • 27
-1 votes
2 answers
246 views

I am new to Laravel and can't seem to find the answer to a technical detail of the implementation. Essentially, when I put any given file inside the public directory, for e.g. app.css, and then ...
coderboy's user avatar
  • 1,887
0 votes
1 answer
443 views

I set up a new Laravel 11 project and try to install API routes by executing php artisan install:api command. This results in the below error. Laravel install api error OS: Mac OS Sonoma 14.3.1 (23D60)...
Nalinda Dulwala's user avatar
1 vote
1 answer
140 views

I have a Route group which applies middlewares to all nested routes. I am passing a parameter to it. Inside the group, though, I have a specific route for which I want to pass a different parameter. ...
Enrico's user avatar
  • 830
0 votes
0 answers
508 views

i'm using laravel 8 and php 7.3 The code run fine but suddenly it show I've tried making new laravel file but when i ctrl + f5 it's still the same i also tried php artisan cache:clear, php artisan ...
Bubleygum's user avatar
1 vote
0 answers
45 views

I'm trying to open cicilan page while passing the id where the button is clicked then show the data based on the id. this is the cicilan button data: 'statusPelunasan', name: 'statusPelunasan', render:...
Bubleygum's user avatar
0 votes
2 answers
86 views

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

In my Laravel Project i have few routes which i want to protect if the user is not authenticated thats why i make this changes to Authenticate middleware : namespace App\Http\Middleware; use ...
Shubham Kandalgaonkar's user avatar
1 vote
0 answers
1k views

I'm facing a CORS policy issue in my Laravel application when trying to make a request to an API endpoint from my frontend. The error message I'm receiving is: Access to XMLHttpRequest at 'https://...
Hocine Djouamaa's user avatar
-2 votes
2 answers
304 views

I'm encountering a peculiar issue in my Laravel API setup. I have a resource controller for managing student data, including deletion. When I make a DELETE request to http://127.0.0.1:8000/api/student/...
Redouane's user avatar
0 votes
1 answer
82 views

I have a route that's look like this /collections/1 and I want it to look like this /collections/name that instance name is stored inside my database and it is unique, I want it to showen in the URL ...
MOHAMED KESSOUM's user avatar
0 votes
1 answer
404 views

Changed the source code so it now works properly. I created a dynamic navigation for the frontend page. However, I had a little problem with it. When I navigate to the page of one of the entries in ...
Fzol's user avatar
  • 21
0 votes
0 answers
79 views

I have a route defined as: Route::domain('{subdomain}.' . config('app.domain'))->group(function () { Route::get('/some-url/{id}', function ($id) { return $id; }); }); When defining my ...
Niku Nitin's user avatar
0 votes
1 answer
268 views

I am using the Laravel auth package in a Laravel 10 project. The Forgot Password link used to work a few weeks ago. I don't know what changed, but when I click the Forgot Your Password link, it ...
user761100's user avatar
  • 2,317
0 votes
1 answer
614 views

i have laravel issue, after create new route, laravel cant detect that, i always use php artisan:optimize after create new route url. What Should i do to fix this issue ? I hope that after creating a ...
Abyan Adam's user avatar
0 votes
2 answers
473 views

I have a routes folder admin.php, with following intended code Route::prefix('admin')->group(function(){ Route::get('/new/dashboard',[SuperAdminController::class,'dashboard']); Route::get('/new/...
Austin Sanga's user avatar
0 votes
1 answer
267 views

I am trying to store data using store method and using VendorStoreRequest class for validation. However, I am getting : 405 Method Not Allowed error. When I change to normal Illuminate Request it ...
Wahidul Alam's user avatar
  • 1,227
0 votes
1 answer
3k views

I am getting the error InvalidArgumentException: Auth guard [auth] is not defined. with the below given code.I understood this error is because I have added auth in the guards array of config/sanctum....
M G's user avatar
  • 27
4 votes
1 answer
976 views

I've run out of ideas, so I thought I'll ask around. Here's my code: # app/Map/MapServiceProvider.php class MapServiceProvider extends ServiceProvider { /** * Bootstrap any package services. ...
Sebastian Sulinski's user avatar
-1 votes
1 answer
89 views

I am trying to figure this out. I have backend in laravel and i am returning id of new created client. How can i use this param in js redirect? This is my best try but i am getting into this url: ...
Dan Rais's user avatar
  • 329
0 votes
1 answer
126 views

I have created some routes in Laravel using Route::methods and also resources but some admin and non-admin routes add extra 'admin' prefix in routes. So when I am calling the routes it does not work ...
Mohan Lal Sharma's user avatar
0 votes
1 answer
42 views

I have two routes in my Web.php, Route::get('/employees', [ApiController::class, 'employees'])->name('employees'); Route::post('/employeesPost', [ApiController::class, 'employees'])->name('...
laravel Development's user avatar
-1 votes
1 answer
111 views

I am trying to build a user and client page with laravel I created a page that can be used to create users now I want to create a page just like that when I click those users but I keep on getting ...
Intr0vert's user avatar
  • 285
0 votes
0 answers
117 views

I'm doing this: \Illuminate\Routing\Route::macro('description', function (string $description): AppServiceProvider|\Illuminate\Routing\Route { $this->action['description'] = isset($this-...
Marinario Agalliu's user avatar
0 votes
2 answers
5k views

PHP Version - 8.2.4 Laravel 10 I am facing an issue with one of the routes in my Laravel application. I have defined a route for the '/about-us' URL, but whenever I try to access it, I get a 404 NOT ...
Harinda Vishwantha's user avatar
0 votes
1 answer
203 views

I saw this in this tutorial: return to_route('route_name'); Does to_route('route_name') mean the same as redirect()->route('route_name)? I tried finding an explanation in the Laravel docs, but ...
Deka brina's user avatar
0 votes
2 answers
1k views

I have been working on a Laravel project where I needed to organize my codebase using modules. To achieve this, I created separate directories for each module under the app/Modules folder. One ...
AJITHKUMAR S's user avatar
0 votes
0 answers
845 views

In Laravel 10, I have routes that are structured like the following: Route::group(['middleware' => ['permission:edit-settings']], function () { $module_name = 'settings'; $controller_name = ...
Punit Gajjar's user avatar
  • 5,007
0 votes
1 answer
67 views

I am currently facing the challenge, that I have the same route pattern for two Controllers. To make it easier, let's say we have a BlogController and a PageController. Both controllers have the same ...
rakete's user avatar
  • 3,051
0 votes
0 answers
66 views

in Laravel, I have made a project to handle supervisors to supervisor their students PG or final year project, here is a simple explanation of what the project is about, every use can have many roles, ...
zhela's user avatar
  • 41
0 votes
0 answers
313 views

I have a problem capturing the domain in the routes file. When a route is written like this: Route::domain('mydomain.com') ->get('/', function () { return "It works"; }); ...
Libor Blocek's user avatar
0 votes
0 answers
77 views

without resource, I can use like this is work: use App/Http/Controller/Aaa/XxxController as AaaXxxController; use App/Http/Controller/Bbb/XxxController as BbbXxxController; Route::get( "/aaa"...
黃梓榆's user avatar
0 votes
1 answer
831 views

I am having issues logging in using Laravel. Every time a user logs in, it redirects them to the post route (a blank page) instead of home, which is the intended route. Even when I login with the ...
Maranda Dominguez's user avatar
-1 votes
2 answers
342 views

I have a Laravel 5.8 application and I need to add a custom anonymous route to the Laravel's core file which is Router.php and located in this directory: /vendor/laravel/framework/src/Illuminate/...
Peter Amo's user avatar
  • 261
-1 votes
2 answers
161 views

1. Route::get('list', [App\Http\Controllers\Driver\DocumentController::class,'list']); 2. Route::get('list', ['Driver\DocumentController@list']); What is the faster way to load callback from class ...
MD. Mashfiqur Rahman's user avatar
-2 votes
2 answers
432 views

I was working on a laravel project. The following is the code of my UserController: <?php namespace App\Http\Controllers\Backend\Admin\Users; use App\Models\User; use Illuminate\Http\Request; use ...
bilalahmedcodes's user avatar
-1 votes
2 answers
763 views

I'm trying to treat this 404 erro return and I can't do it using the apiResources and Missing method. For example, I'm doing this: And whenever it give me a 404 page web error. Tks! Route::...
Bernan Ribeiro's user avatar
0 votes
1 answer
838 views

I am trying to use Laravel Fortify for authentication. All routes work fine except for email verification. I have done everything according to docs as far as I understand: Impemented Illuminate\...
Dave's user avatar
  • 2,882
0 votes
2 answers
4k views

I am calling internal API route from controller but unable set headers using laravel 8 $request = Request::create('/api/login/', 'POST',['id' => '1']); $request->headers->set('Authorization','...
Sameer's user avatar
  • 1

1
2 3 4 5
46