C
C
chelkaz2016-03-26 00:04:39
Laravel
chelkaz, 2016-03-26 00:04:39

What is the most logical way to display the number of URL widths in a pass-through block?

There is a through block, it is on all pages. This is the acros view
Connected as @include('layouts.across')
It contains a block with buttons to share the site, exactly the link that the page is open.
To get the number of shared, you need to make a request to the service for example VK
https://vk.com/share.php?act=count&index=1&url=htt...
it will return the answer. It turns out you need to do this before rendering the page.
How to make a request before opening any page and pass an array with responses to the view?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Muhammad, 2016-03-26
@muhammad_97

View Composers: https://laravel.com/docs/5.1/views

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question