26 lines
736 B
PHP
Executable File
26 lines
736 B
PHP
Executable File
<?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;
|
|
|
|
/**
|
|
* Display a view but pull it from the active skin
|
|
* @param string $template
|
|
* @param array $vars
|
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
|
*/
|
|
public function view(string $template, array $vars=[])
|
|
{
|
|
$tpl = 'layouts/' . config('phpvms.skin') . '/' . $template;
|
|
return view($tpl, $vars);
|
|
}
|
|
}
|