@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Html\Elements; |
| 4 | 4 | |
| 5 | +use Illuminate\Support\Collection; |
|
| 5 | 6 | use Illuminate\Support\Str; |
| 6 | -use Spatie\Html\Selectable; |
|
| 7 | 7 | use Spatie\Html\BaseElement; |
| 8 | -use Illuminate\Support\Collection; |
|
| 8 | +use Spatie\Html\Selectable; |
|
| 9 | 9 | |
| 10 | 10 | class Select extends BaseElement |
| 11 | 11 | { |
@@ -3,13 +3,13 @@ |
||
| 3 | 3 | namespace Spatie\Html; |
| 4 | 4 | |
| 5 | 5 | use BadMethodCallException; |
| 6 | +use Illuminate\Contracts\Support\Htmlable; |
|
| 6 | 7 | use Illuminate\Support\Collection; |
| 7 | 8 | use Illuminate\Support\HtmlString; |
| 8 | -use Spatie\Html\Exceptions\MissingTag; |
|
| 9 | -use Spatie\Html\Exceptions\InvalidHtml; |
|
| 10 | 9 | use Illuminate\Support\Traits\Macroable; |
| 11 | 10 | use Spatie\Html\Exceptions\InvalidChild; |
| 12 | -use Illuminate\Contracts\Support\Htmlable; |
|
| 11 | +use Spatie\Html\Exceptions\InvalidHtml; |
|
| 12 | +use Spatie\Html\Exceptions\MissingTag; |
|
| 13 | 13 | |
| 14 | 14 | abstract class BaseElement implements Htmlable, HtmlElement |
| 15 | 15 | { |
@@ -2,27 +2,27 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Html; |
| 4 | 4 | |
| 5 | -use Spatie\Html\Elements\A; |
|
| 6 | -use Spatie\Html\Elements\I; |
|
| 5 | +use Illuminate\Contracts\Support\Htmlable; |
|
| 7 | 6 | use Illuminate\Http\Request; |
| 7 | +use Illuminate\Support\Collection; |
|
| 8 | +use Illuminate\Support\HtmlString; |
|
| 9 | +use Illuminate\Support\Traits\Macroable; |
|
| 10 | +use Spatie\Html\Elements\A; |
|
| 11 | +use Spatie\Html\Elements\Button; |
|
| 8 | 12 | use Spatie\Html\Elements\Div; |
| 9 | -use Spatie\Html\Elements\Img; |
|
| 13 | +use Spatie\Html\Elements\Element; |
|
| 14 | +use Spatie\Html\Elements\Fieldset; |
|
| 10 | 15 | use Spatie\Html\Elements\File; |
| 11 | 16 | use Spatie\Html\Elements\Form; |
| 12 | -use Spatie\Html\Elements\Span; |
|
| 17 | +use Spatie\Html\Elements\I; |
|
| 18 | +use Spatie\Html\Elements\Img; |
|
| 13 | 19 | use Spatie\Html\Elements\Input; |
| 14 | 20 | use Spatie\Html\Elements\Label; |
| 15 | -use Spatie\Html\Elements\Button; |
|
| 16 | 21 | use Spatie\Html\Elements\Legend; |
| 17 | 22 | use Spatie\Html\Elements\Option; |
| 18 | 23 | use Spatie\Html\Elements\Select; |
| 19 | -use Spatie\Html\Elements\Element; |
|
| 20 | -use Illuminate\Support\Collection; |
|
| 21 | -use Illuminate\Support\HtmlString; |
|
| 22 | -use Spatie\Html\Elements\Fieldset; |
|
| 24 | +use Spatie\Html\Elements\Span; |
|
| 23 | 25 | use Spatie\Html\Elements\Textarea; |
| 24 | -use Illuminate\Support\Traits\Macroable; |
|
| 25 | -use Illuminate\Contracts\Support\Htmlable; |
|
| 26 | 26 | |
| 27 | 27 | class Html |
| 28 | 28 | { |