Created
September 30, 2020 11:35
-
-
Save jongravois/33f896bc076b67e921da4565daaa1c7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\View\Components; | |
use Illuminate\View\Component; | |
class AppLayout extends Component | |
{ | |
public $pagetitle; | |
public function __construct($pagetitle='Team Hub') | |
{ | |
$this->pagetitle = $pagetitle; | |
} | |
public function render() | |
{ | |
return view('layouts.app', ['pagetitle' => $this->pagetitle]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment