Add address, phone, email, website fields to suppliers
Deploy / deploy (push) Successful in 16s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-12 21:38:53 +02:00
1 parent c5b0a43928
commit a4f3254ebd
3 files changed
+51 -1

No files matched your search

@@ -28,8 +28,24 @@ class SupplierResource extends Resource
return $form
->schema([
Forms\Components\TextInput::make('name')
->label('Name')
->required()
->maxLength(255),
Forms\Components\TextInput::make('address')
->label('Anschrift')
->maxLength(255),
Forms\Components\TextInput::make('phone')
->label('Telefon')
->tel()
->maxLength(50),
Forms\Components\TextInput::make('email')
->label('E-Mail')
->email()
->maxLength(255),
Forms\Components\TextInput::make('website')
->label('Webseite')
->url()
->maxLength(255),
]);
}
@@ -38,7 +54,16 @@ class SupplierResource extends Resource
return $table
->columns([
Tables\Columns\TextColumn::make('name')
->label('Name')
->searchable(),
Tables\Columns\TextColumn::make('email')
->label('E-Mail')
->searchable(),
Tables\Columns\TextColumn::make('phone')
->label('Telefon'),
Tables\Columns\TextColumn::make('website')
->label('Webseite')
->toggleable(isToggledHiddenByDefault: true),
Tables\Columns\TextColumn::make('created_at')
->dateTime()
->sortable()
+1 -1
View File
@@ -8,7 +8,7 @@ use Illuminate\Database\Eloquent\Model;
class Supplier extends Model
{
use HasFactory;
protected $fillable = ['name'];
protected $fillable = ['name', 'address', 'phone', 'email', 'website'];
public function spiceSuppliers()
{