1 | <?php namespace Arcanesoft\Seo\ViewComposers; |
||
12 | class ViewComposer |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Properties |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** |
||
19 | * The View instance. |
||
20 | * |
||
21 | * @var \Illuminate\Contracts\View\View |
||
22 | */ |
||
23 | protected $view; |
||
24 | |||
25 | /** |
||
26 | * Caching time. |
||
27 | * |
||
28 | * @var int |
||
29 | */ |
||
30 | protected $minutes = 5; |
||
31 | |||
32 | /* ------------------------------------------------------------------------------------------------ |
||
33 | | Other Functions |
||
34 | | ------------------------------------------------------------------------------------------------ |
||
35 | */ |
||
36 | /** |
||
37 | * Cache the results. |
||
38 | * |
||
39 | * @param string $name |
||
40 | * @param \Closure $callback |
||
41 | * |
||
42 | * @return mixed |
||
43 | */ |
||
44 | protected function cacheResults($name, Closure $callback) |
||
48 | } |
||
49 |