skip to Main Content

Laravel: 'Get' Route not calling method in controller

I have a route as: Route::get('/edit/detail/{modelName}/{rowId}/{persId}',[AddPersInfoController::class,'editPersDetailTabs'])->name('edit_pers_detail'); and I'm calling it from a button in a table as: Edit: This is the actual code on my page. <td><a href="{{ route('edit_pers_detail',['Posting_history', $posting->id, $posting->pers_info_id] ) }}"> <button class="btn btn-icon btn-primary"> <i class="demo-pli-pencil fs-5"></i>…

VIEW QUESTION

laravel eagerloading with function does not return relation but separateley works

i have the following models <?php namespace AppModelsMastersSystem; class UserActivationCode extends IlluminateDatabaseEloquentModel { public $table = "user_activation_codes"; } <?php namespace AppModels; use AppModelsModel; use ModulesRequestsModelsEmploymentLeaveType; use AppModelsMastersSystemUserActivationCode; class EmployeeEmployment extends IlluminateDatabaseEloquentModel { public $table = "employee_employments"; public function employeeProfileScore() {…

VIEW QUESTION

Get array validation key in laravel

Im using laravel 8.83.27 public function messages() { return [ 'price_per_image.array' => 'Price must be an array', 'price_per_image.required' => 'Price per image field is required', 'price_per_image.*.required' => 'Price per image '.preg_replace('/^[a-zA-Z_]*./', '', ':key').' field required', 'price_per_image.*.numeric' => 'You have invalid…

VIEW QUESTION
Back To Top
Search