Laravel vue 3 remove /build/ from url
Let me start of with the fact that im new to laravel and english is not my main language so dont mind my grammer. I have a project that has a laravel api with a vue front-end. The Laravel web…
Let me start of with the fact that im new to laravel and english is not my main language so dont mind my grammer. I have a project that has a laravel api with a vue front-end. The Laravel web…
I want to display components based on the authorization status. How do I make sure that during rendering I do not display components that fit the default state? I tried changing the state in useLayoutEffect, but I still see a…
I can't seem to get dynamic routes in Next.js working with Firebase hosting. Everything works fine locally using the emulators, but after deploying the application using firebase deploy the dynamic route is not directly accessible. Instead, I just get redirected…
Routes.php while routing to other routes this error showed up The requested URL was not found on this server why do I get this error? In routes.php setAutoRoute is set to "true" but the routes did not connect to the…
I try to delete some of my post with slug but it's not found. My route: Route::resource('/dashboard/berita', DashboardController::class)->parameters([ 'berita' => 'post:slug' ])->middleware('auth'); My Controller: public function destroy(Post $post) { $post->delete(); return redirect('/dashboard/berita')->with('success', 'Berita sudah dihapus!'); } My blade: <form action="{/dashboard/berita/{{…
I am newbie to laravel and i am working on a project and i have a following situation lets assume my base url is https://example.com Now i want to pass a slug(argument) after a base url which means https://example.com/xyz something…
I have this route in web.php: Route::get('student/evaluation/{evaluation}', [EvaluationController::class, 'getEvaluationQuestions'])->middleware('auth')->name('student.questionsevaluation'); And in my controller I have this condition, where $questionWasCompleted is boolean if($questionWasCompleted){ return redirect()->route('student.questionsevaluation', $evaluation) ->with('message', 'Question answered.') ->with('question', $questionWasCompleted); } How can I get the value of $questionWasAnswered to…
I have a problem working with URI routing in Codeigniter 4.2.6. I have Controller name Home and a method name getIndex. When accessing http://localhost:8080 all working fine. When I try http://localhost:8080/home/index, a message 'Cannot access the default controller "Home" with…
I am having difficulty in understanding how to pass data to a .blade. I want to pass the users' username ($user) to a dashboard component. Here's a few things I've tried: return view('livewire.dashboard', ['user'=>'$user']); return view('livewire.dashboard', compact('$user')); return view('livewire.dashboard'->with('user',$user)); But…
I have springboot application with different ports hosted in ec2 instance Domain in Route 53 Domain Name : mydomain.com App A - 8081, App B - 8085, App c - 8088 Instance IP : 10.xx.xx.xx domain : test1.mydomain.com point to…