phpvms/app/Http/Controllers/Controller.php

20 lines
517 B
PHP
Raw Normal View History

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;
public function view($template, $vars=[])
{
$tpl = 'layouts/'.config('phpvms.skin').'/'.$template;
return view($tpl, $vars);
}
2017-06-09 02:28:26 +08:00
}