create a function in the controller then add it in the route.
Route::get('purchase_detauls/newFunction', Purchase_detailsController@newFunction');
Route::resource('Purchase_details','Purchase_detailsController');
or you can enclose it in Route::group