2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
|
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
|
|
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|
|
|
|
|
|
|
class Controller extends BaseController
|
|
|
|
{
|
|
|
|
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
|
2017-08-02 07:40:05 +08:00
|
|
|
|
2017-12-02 01:25:58 +08:00
|
|
|
/**
|
|
|
|
* Display a view but pull it from the active skin
|
|
|
|
* @param string $template
|
|
|
|
* @param array $vars
|
2018-01-12 11:21:33 +08:00
|
|
|
* @param array $merge_data
|
2017-12-02 01:25:58 +08:00
|
|
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
|
|
|
*/
|
2018-01-12 11:21:33 +08:00
|
|
|
public function view($template, array $vars=[], $merge_data=[])
|
2017-08-02 07:40:05 +08:00
|
|
|
{
|
2018-01-12 11:35:03 +08:00
|
|
|
return skin_view($template, $vars, $merge_data);
|
2017-08-02 07:40:05 +08:00
|
|
|
}
|
2017-06-09 02:28:26 +08:00
|
|
|
}
|