Archived
1
0
Fork 0
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
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}");
}
}