I am working on a project in Laravel-5.8,
When the user clicks on the href it posts all respondents:
Controller:
public function submit_all_respondents(){
...
Notification::route('mail', $details['employee_respondent_email'])
->notify(new \App\Notifications\RespondentSubmit($details));
Session::flash('success', 'Email sent to respondents successfully');
return redirect()->back();
}
View
<a href ="{{ route('post.respondent.all')}}" class="btn btn-primary float-left"><i class="fas fa-arrow-right"></i> Post All Respondents</a>
After just a single click, I want the href to be disabled and becomes "Processng ..." until it is done.
How do I achieve this
<a>.