Skip to content

Commit

Permalink
Improved demo components, strict types
Browse files Browse the repository at this point in the history
  • Loading branch information
adrolli committed May 26, 2022
1 parent 5ed33b9 commit 661379d
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
<?php

declare(strict_types=1);

namespace Usetall\TalluiCore\Components\Blade;

use Illuminate\Contracts\View\View;
use Usetall\TalluiCore\Components\BladeComponent;

class FirstBladeComponent extends BladeComponent
{
public $first_var = "";
/** @var array */
protected static $assets = ['example'];

/** @var string|null */
public string $first_var = "";

public function mount()
{
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
<?php

declare(strict_types=1);

namespace Usetall\TalluiCore\Components\Livewire;

use Illuminate\Contracts\View\View;
use Usetall\TalluiCore\Components\LivewireComponent;

class FirstLivewireComponent extends LivewireComponent
{

/** @var array */
protected static $assets = ['example'];

/** @var string|null */
public string $first_var = "";

public function mount()
{
// mount
}

public function render(): View
{
return view('tallui-core::components.livewire.first-livewire-component');

0 comments on commit 661379d

Please sign in to comment.