payman 0 گزارش دادن ارسال شده در تیر 1 Route::prefix('Locomotive_repairs')->group(function (){ Route::get('/',[\App\Http\Controllers\LocomotiveRepairController::class,'index'])->name('Locomotive_repairs'); Route::post('/store',[\App\Http\Controllers\LocomotiveRepairController::class,'store'])->name('Locomotive_repairs.store'); Route::get('/{repair}/edit',[\App\Http\Controllers\LocomotiveRepairController::class,'edit'])->name('Locomotive_repairs.edit'); Route::get('/{repair}/destroy',[\App\Http\Controllers\LocomotiveRepairController::class,'destroy'])->name('Locomotive_repairs.publish'); Route::put('/{repair}/update',[\App\Http\Controllers\LocomotiveRepairController::class,'update'])->name('Locomotive_repairs.update'); Route::get('/{repair}/show',[\App\Http\Controllers\LocomotiveRepairController::class,'show'])->name('Locomotive_repairs.show'); Route::get('/{repair}/print',[\App\Http\Controllers\LocomotiveRepairController::class,'print'])->name('Locomotive_repairs.print'); Route::get('/search',[\App\Http\Controllers\LocomotiveRepairController::class,'search'])->name('Locomotive_repairs.search'); }); نحوه فراخوانی : {{route('Locomotive_repairs.show',$repair->id)}} و محتوای کنترلر /** * Display the specified resource. * * @param \App\Models\Locomotive_repair $locomotive_repair * @return \Illuminate\Http\Response */ public function show(Locomotive_repair $locomotive_repair) { dd($locomotive_repair); } /** * Show the form for editing the specified resource. * * @param \App\Models\Locomotive_repair $locomotive_repair * @return \Illuminate\Http\Response */ public function edit(Locomotive_repair $locomotive_repair) { dd($locomotive_repair); } /** * Remove the specified resource from storage. * * @param \App\Models\Locomotive_repair $locomotive_repair * @return \Illuminate\Http\Response */ public function destroy(Locomotive_repair $locomotive_repair) { dd($locomotive_repair); } و مقادیر dd() ^ App\Models\Locomotive_repair {#1467 ▼ #fillable: array:10 [▶] #connection: null #table: null #primaryKey: "id" #keyType: "int" +incrementing: true #with: [] #withCount: [] +preventsLazyLoading: false #perPage: 15 +exists: false +wasRecentlyCreated: false #escapeWhenCastingToString: false #attributes: [] #original: [] #changes: [] #casts: [] #classCastCache: [] #attributeCastCache: [] #dates: [] #dateFormat: null #appends: [] #dispatchesEvents: [] #observables: [] #relations: [] #touches: [] +timestamps: true #hidden: [] #visible: [] #guarded: array:1 [▶] } گزینه #attributes: [] خالی هست دلیلش رو نمی دونم ممنون راهنمایی کنید نقل قول Share this post Link to post Share on other sites