I found in documentation that something similar can be done
But for all views
By putting in AppServiceProvider or other own ServiceProvider something like
View::share('key', 'value');
But how to share data only with some specific
views?
Not all. Not one. But some views? Views listed im array or something that I want it to share