php - trying to create route of blade file

i am trying to jump on details.blade.php page but getting error
Route [admin.leads.details] not defined. (View: C:\Users\810te\lms\resources\views\admin\leads\index.blade.php)
here is my code:
web.php
Route::resource('leads', LeadsController::class)->except([
'destroy'
]);
Route::resource('leads/{id}/details','LeadsController@details');
LeadsController.php
public function details(Lead $lead)
{
return view('admin.leads.details');
}
index.blade.php
<a href="{{route('admin.leads.details',$lead->id)}}" class="btn btn-warning p-0"><i class="fa fa-edit"></i></a>
after click button i want to jump on details.blade.php.that i have created on same path ofindex.blade.php
file
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: composer detected issues in your platform: your composer dependencies require a php version ">= 7.3.0".
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.