add recent() call to BaseRepository

This commit is contained in:
Nabeel Shahzad
2017-12-01 11:25:58 -06:00
parent 9566da84a5
commit 622e099b97
4 changed files with 72 additions and 9 deletions

View File

@@ -11,9 +11,15 @@ class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
public function view($template, $vars=[])
/**
* 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;
$tpl = 'layouts/' . config('phpvms.skin') . '/' . $template;
return view($tpl, $vars);
}
}