Skip to content

Commit

Permalink
fix greeter card
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenko3 committed Mar 30, 2023
1 parent c57a2f2 commit 3d14bff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cards/GreeterCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

namespace Stepanenko3\NovaCards\Cards;

use Illuminate\Support\Traits\Conditionable;
use Laravel\Nova\Card;

class GreeterCard extends Card
{
use Conditionable;

public array $buttons = [];

public $width = '1/3';
Expand All @@ -16,6 +19,7 @@ public function __construct($component = null)

$this->withMeta([
'user_name' => auth()->user()?->name ?? __('Dear User'),
'buttons' => $this->buttons,
]);
}

Expand Down

0 comments on commit 3d14bff

Please sign in to comment.