Laravel 9, Undefined variable $users
Please help me, I'm new to Laravel. I'm trying to view data from my table but it shows this error. I already tried different methods but all without success and I use Laravel 9. And sorry if this problem got…
Please help me, I'm new to Laravel. I'm trying to view data from my table but it shows this error. I already tried different methods but all without success and I use Laravel 9. And sorry if this problem got…
My website incorporates multilingual functionality, allowing content to be displayed in various languages. To facilitate this, language-specific data is stored in the MySQL database within JSON fields. This approach enables flexible storage of language-specific information, with each JSON field containing…
Im trying to show the user the times when he's available by days and display them in a modal. public function searchAvailability(){ $this->validate(); $doctor = Doctor::where('id',$this->selectedDoctor)->first(); $doctorTimes = DoctorTime::where('doctor_id',$this->selectedDoctor)->get(); $parsedDate = Carbon::parse($this->selectedDate); $dayName = $parsedDate->format('l'); if ($parsedDate->isFuture()) { foreach($doctorTimes as…
So I've enabled CSP in my Laravel Website and it runs perfectly fine on localhost. However, the problem occurred when deploying the Website on a Linux server using a domain, it gave me an error. Refused to send form data…
New feature came in vscode recently but I don't need it right now, how can I disable this?
I want to connect with mysql database but here show the error like this at vendorlaravelframeworksrcIlluminateDatabaseConnection.php:813 809▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 810▕ ); 811▕ } 812▕ ➜ 813▕ throw new QueryException( 814▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 815▕ ); 816▕ }…
Package Version v3.0.0 DatePicker::make('reservation_date') ->label('Rezervasyon Tarihi') ->live(onBlur: true) I went to DatePicker component inside and add: public static string $defaultDateDisplayFormat = "d/m/Y"; However its still showing as "mm/dd/YYYY" on input before selection and after. Is there a solution for me…
I have a simple Laravel app using AWS Lambda functions. I am trying to debug why lambda times out sometimes, so I am logging one of the HTTP request parameters in the controller. But the issue is that the logs…
Want to logout the specific user, when admin inactive this specific user with Laravel public function userInactive1($id) { $selectedUser = User::find($id); if ($selectedUser) { // Update user status to inactive // $selectedUser->status = 0; $selectedUser->save(); } return redirect()->back(); }
I published Laravel's error pages and customized them. I can test a 404 error, for example, but if I throw an Exception in my controller to test the 500 error page, the debug page of Laravel is displayed instead of…