1
0
Fork 0
wow-raid-bingo/app/View/Components/Layout.php

28 lines
433 B
PHP

<?php
namespace App\View\Components;
use Illuminate\View\Component;
class Layout extends Component
{
/**
* Layout name
*/
public string $name;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct(string $name = 'app')
{
$this->name = $name;
}
public function render()
{
return view("layouts.{$this->name}");
}
}