Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
textarea
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
 render
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\View\Components\form;
4
5use Illuminate\View\Component;
6
7class textarea extends Component
8{
9    public $name;
10    public $class;
11    public $value;
12    public $label;
13    public $attribute;
14    public $key;
15
16    /**
17     * Create a new component instance.
18     *
19     * @return void
20     */
21    public function __construct($class, $name ="test", $value, $label ="", $attribute="", $key="")
22    {
23        $this->class = $class;
24        $this->attribute = $attribute;
25        $this->label = $label;
26        $this->name = $name;
27        $this->value = $value;
28        $this->key = $key;
29    }
30
31    /**
32     * Get the view / contents that represent the component.
33     *
34     * @return \Illuminate\Contracts\View\View|\Closure|string
35     */
36    public function render()
37    {
38        return view('components.form.textarea');
39    }
40}