1. Go to this page and download the library: Download anish/text-input-entry library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
anish / text-input-entry example snippets
namespace App\Filament\Resources\Users\Pages;
use Filament\Resources\Pages\ViewRecord;
use Anish\TextInputEntry\Traits\TextInputEntryTrait;
class ViewUser extends ViewRecord
{
use TextInputEntryTrait;
protected static string $resource = UserResource::class;
}
namespace App\Filament\Resources\Users\Schemas;
use Filament\Schemas\Schema;
use Anish\TextInputEntry\Infolists\Components\TextInputEntry;
use Filament\Support\Enums\TextSize;
use Illuminate\Support\Facades\Auth;
class UserInfolist
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInputEntry::make('name')
->editable(true)
->size(TextSize::Large)
->rules(['