Skip to content

Commit

Permalink
Merge pull request #11 from code4romania/5-mvp-review-empty-states-in…
Browse files Browse the repository at this point in the history
…-tables-or-info-boxes-should-always-be-marked-as-a-dash

add default for text entry
  • Loading branch information
gheorghelupu17 authored Mar 14, 2024
2 parents b9963ad + 54cf1b5 commit ddc4663
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use App\Models\Service;
use App\Models\User;
use Filament\Http\Responses\Auth\Contracts\LoginResponse as LoginResponseContract;
use Filament\Infolists\Components\TextEntry;
use Filament\Tables\Columns\Column;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Relation;
Expand Down Expand Up @@ -48,6 +49,10 @@ public function boot(): void
Model::preventLazyLoading($shouldBeEnabled);
Model::preventAccessingMissingAttributes($shouldBeEnabled);
});

TextEntry::configureUsing(function (TextEntry $entry){
return $entry->default('-');
});
}

protected function enforceMorphMap(): void
Expand Down

0 comments on commit ddc4663

Please sign in to comment.