Van1310
6 months ago

how registration table name print

Posted 6 months ago by Van1310

i want print student_name

public function firstprint()

{   
 
    //$student=Firstpay::all();

    $student=Firstpay::with('Registration')->get();        

    return $student;        

    //return view('admin.pages.student_information.firstinstallmentprint',compact('student'));

}

output :: [{"id":1,"student_id":1,"firstpay":2000,"firstpaydate":"2019-02-05","created_at":"2019-02-21 09:49:30","updated_at":"2019-02-21 09:49:30","registration":{"id":1,"stream_id":1,"city":"bhavnagar","student_name":"vandan","contact_number":"8866004118","email":"vandanmakwana7590@gmail.com","reference_name":"Direct Office","resume":"ZvilU9BjCKyWwaQeUbuM2yuAYJn6sX.doc","date_registration":"2019-02-07","created_at":"2019-02-14 06:19:05","updated_at":"2019-02-14 06:19:05"}}]

Please sign in or create an account to participate in this conversation.