I figured out how to share my inputs from a view to all views using the Laravel share method. All I did was to post my form inputs from my blade view. And then I passed those inputs into the AppServiceprovider boot method ( app\providers\AppServiceProvider). Below is my code that I used in the appserviceprovider.
public function boot(Request $request)
{
Schema::defaultStringLength(191);
$wordcount = $request['wordcount'];
$label = $request['label'];
$currency = $request['currency'];
$symbol = $request['symbol'];
$result = $request['result'];
$tax = $request['tax'];
$total = $request['total'];
$state = $request['symbol'];
$country = $request['selCountry'];
$amount = $request['currency'];
View::share('wordcount', $wordcount);
View::share('label', $label);
View::share('currency', $currency);
View::share('symbol', $symbol);
View::share('result', $result);
View::share('tax', $tax);
View::share('total', $total);
View::share('state', $state);
View::share('country', $country);
View::share('amount', $amount);
}
The final step is going to any view and using the variables (e.g. $wordcount).
I hope this may help someone in a similar situation.