phpvms/app/Interfaces/Widget.php

27 lines
471 B
PHP
Raw Normal View History

<?php
namespace App\Interfaces;
use Arrilot\Widgets\AbstractWidget;
/**
* Class Widget
*/
abstract class Widget extends AbstractWidget
{
public $cacheTime = 0;
/**
* Render the template
2018-08-27 00:40:04 +08:00
*
* @param string $template
* @param array $vars
2018-08-27 00:40:04 +08:00
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function view(string $template, array $vars = [])
{
return view($template, $vars);
}
}