Skip to content

Commit

Permalink
Merge pull request #1 from lara-zeus/icon
Browse files Browse the repository at this point in the history
add default icon for resource
  • Loading branch information
atmonshi authored Mar 3, 2024
2 parents 23af531 + 8354c4e commit cffc749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ChaosServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ public function configurePackage(Package $package): void
public function packageBooted(): void
{
Blueprint::macro('actionBy', function () {
/** @var Blueprint $this */
$this->string('created_by')->nullable();
$this->string('updated_by')->nullable();
});

Blueprint::macro('dropActionBy', function () {
/** @var Blueprint $this */
$this->dropColumn('created_by');
$this->dropColumn('updated_by');
});
Expand Down
2 changes: 2 additions & 0 deletions src/Filament/ChaosResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

class ChaosResource extends Resource
{
protected static ?string $navigationIcon = 'tabler-point-filled';

public static function langFile(): string
{
return str(parent::getSlug())->explode('/')->last();
Expand Down

0 comments on commit cffc749

Please sign in to comment.