myvideogamelist.com/app/View/Components/BaseLayout.php

21 lines
400 B
PHP
Raw Permalink Normal View History

<?php
namespace App\View\Components;
use Illuminate\View\Component;
class BaseLayout extends Component
{
/**
* Get the view / contents that represents the component.
*/
public function render()
{
if (theme()->getOption('layout', 'base') === 'docs') {
return view('layout.docs.master');
}
return theme()->getView('layout.master');
}
}