enroll_table three field fetch to payment form to create payment field in laravel 5.5



PHP Snippet 1:

<td><a href="{{ route('payment.fetch', $enroll->id )}}" class="btn btn-info btn-xs" role="button">  <i class="fa fa-money"> PAY </i></a></td>

PHP Snippet 2:

<form action="{{ route('payment.store',['id'=>$enrolls->id])}}" method="post">
{{ csrf_field() }}
<input name="_method" type="hidden" value="PATCH">

PHP Snippet 3:

Route::get('/enroll/{id}', 'PaymentController@fetchEnroll')->name('payment.fetch');

PHP Snippet 4:

 public function fetchEnroll($id){

        $user = Auth::user();
        $enrolls = Enroll::findOrFail($id);

        return view('payment.enroll_fetch',compact('enrolls','user'));
    }