please format your code blocks
if your code errors then please post the specific error
if it is failing when you request a specific url then the rest of your question is irrelevant
Hello folks, Thanks for any help. I am still learning Laravel. I am passing data to blade and in a table format where I have actions of edit and delete buttons in the table. So far so good. There is another button on the blade file to print pdf . Everything works fine with the exception of the last data in the table row. When I try to click on the button in the last row eloquent throws an exception
null // app\Http\Controllers\StudentExamsControlle The rest of the data in the above row works or responds perfectly. Any help? I used (using dd) for foe test
public function singleStudent ($student_id){ $singleStudent = StudentExams::find($student_id)?->student;; $examsrecordSingle =Student::find($student_id)?->examsrecord;; dd( $singleStudent, $examsrecordSingle); return view ('exams.registered_result',compact('singleStudent', 'examsrecordSingle')); There is a relation in the two Models above
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Transcript Preview</h1>
<a class="btn btn-primary" href="{{url('student/exams/pdf/'.$singleStudent->id)}}" role="button">View / Print Final Transcript</a>
</div>
@foreach ($examsrecordSingle as$student )
Any help please ? Thanks in Advance
Please or to participate in this conversation.