skip to Main Content

In Laravel controller file, I would like to change the date format of regDate from 'Y-m-d' to 'd/m/Y'. RegDate from table is in YYYY-mm-dd

I would like to format "regDate" to 'dd/mm/YYYY' from 'YYYY/mm/dd'. Appreciate any help. Thanks. if ($request->keyword != "") { $students = Student::where ("name","LIKE","%" . $request->keyword . "%") ->orWhere("nric","LIKE","%" . $request->keyword . "%") ->orWhere("address","LIKE","%" . $request->keyword . "%") ->orWhere("telNo","LIKE","%" . $request->keyword…

VIEW QUESTION

laravel Target class [TestController] does not exist

I use Laravel Framework 9.31.0 on win11 I used action syntax in the file routesweb.php: Route::get('role', [TestController::class, 'index']); or full path to controller: => 'appHttpControllersTestController@index' or like this: use appHttpControllersTestController; Also I declared variable $namespace in the file appProvidersRouteServiceProvider.php and…

VIEW QUESTION

IlluminateContractsContainerBindingResolutionException Target class [appHttpControllersFrontEndIndexController] does not exist – PHP Versions

**Target class ** does not exist. ?? Why I didn't understand Error Is lluminateContractsContainerBindingResolutionException Target class [appHttpControllersFrontEndIndexController] does not exist. IlluminateContainerContainer::build C:xampphtdocscheck-time.comvendorlaravelframeworksrcIlluminateContainerContainer.php:875 I am Using Laravel 8. Environment information Laravel version 8.47.0 Laravel locale en Laravel config cached true PHP…

VIEW QUESTION
Back To Top
Search