Darnes
error on createOptionsForm in multiple forms in livewire page
it work well (I mean afterStateUpdated) , even when I removed the afterStateUpdated the same error rise. the error rise when CreateOptionForm . other than that every things are work well.
14 replies
error on createOptionsForm in multiple forms in livewire page
the same code is in other resource page work , but in this page the modal of create is open and after I fill data and press add button show error (Missing [$rules/rules()] property/method on: [App\Livewire\Buy\InpBuy].)
14 replies
error on createOptionsForm in multiple forms in livewire page
Select::make('supplier_id')
->label('المورد')
->relationship('Supplier','name')
->live()
->required()
->inlineLabel()
->columnSpan(3)
->afterStateUpdated(function ($state){
$res=Buys_work::find($this->buy_id);
$res->supplier_id=$state;
$res->save();
})
->createOptionForm([
Section::make('ادخال مورد جديد')
->schema([
TextInput::make('name')
->required()
->label('الاسم'),
TextInput::make('address')
->label('العنوان'),
TextInput::make('mdar')
->label('مدار'),
TextInput::make('libyana')
->label('لبيانا'),
Hidden::make('user_id'),
])
])
14 replies
Summarize not work with MS Sql Server . (Invalid object name 'Tsaheal.Bank') ..
I read CanSummarizeRecords.php and CanSummarize.php and I print out the result of $query = DB::table($query->toBase(),$query->getModel()->getTable()); the $query->toBase return the name without .dbo .
14 replies
Summarize not work with MS Sql Server . (Invalid object name 'Tsaheal.Bank') ..
why every other filament , livewire and laravel are work good and every setting and installation in the project are normal as many project I have done . is there any more issue I must do about .dbo.
14 replies
Summarize not work with MS Sql Server . (Invalid object name 'Tsaheal.Bank') ..
the query as filament prepered is wrong . filament call the table 'Bank' where related to 'Tsaheal' connection as 'Tsaheal.Bank' but the rigth is ''Tsaheal.dbo.Bank' . it missing the the sqlserver schema "dbo" . so the query can not run .
14 replies