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