Files
karudhaas/app/View/Components/NamespaceComponent.php

37 lines
714 B
PHP

<?php
namespace App\View\Components;
use Illuminate\View\Component;
class NamespaceComponent extends Component
{
public $name;
public $color;
public $key;
public $description;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct($name,$color, $key, $description)
{
$this->name = $name;
$this->color = $color;
$this->key = $key;
$this->description = $description;
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\View\View|string
*/
public function render()
{
return view('components.namespace-component');
}
}