You have to set your relationships
https://laravel.com/docs/7.x/eloquent-relationships#many-to-many
But be careful, your pivot table herbs_have_forms is not as default laravel convention.
Then you can write your code like this
$herb = Herb::with('forms')->first();
$herb->forms; // this will be your collection of forms
an in opposite way
$form = HerbForm::with('herbs')->first();
$form->herbs; // this will be your collection of herbs
I hope you got an idea.