RMH
RMH
FFilament
Created by knous on 10/19/2023 in #❓┊help
how to fill data with RelationManager Associate
I just got the same error. For anyone else who also encounter similar issue you can get it to work by assigning inverseRelationship like for the given example we will write protected static ?string $inverseRelationship = 'group'; in UnitsRelationManager
2 replies
FFilament
Created by RMH on 9/17/2023 in #❓┊help
SQLSTATE[HY000]: General error: 1364 Field 'guardian_id' doesn't have a default value
yeah... missed that... thanks
7 replies
FFilament
Created by RMH on 9/17/2023 in #❓┊help
SQLSTATE[HY000]: General error: 1364 Field 'guardian_id' doesn't have a default value
Sure the student migration file is:
Schema::create('students', function (Blueprint $table) {
$table->id();
$table->foreignId('guardian_id')
->constrained()
->restrictOnDelete();
$table->string('reg_no')->unique();
$table->string('first_name');
$table->string('last_name')->nullable();
// Other columns
});
Schema::create('students', function (Blueprint $table) {
$table->id();
$table->foreignId('guardian_id')
->constrained()
->restrictOnDelete();
$table->string('reg_no')->unique();
$table->string('first_name');
$table->string('last_name')->nullable();
// Other columns
});
7 replies
FFilament
Created by RMH on 8/26/2023 in #❓┊help
Suggestions for TextInput
Thanks. exactly what I was looking for
5 replies
FFilament
Created by RMH on 8/17/2023 in #❓┊help
Trying to create bulk action to print invoices
Thanks, it worked
3 replies
FFilament
Created by RMH on 5/23/2023 in #❓┊help
Single entry from DatePicker or DateTimePicker
I was trying to save it as a string. Now I have changed it to two select fields as you suggested challan_month and challan_year and using two select fields. Both of these are strings.
7 replies
FFilament
Created by RMH on 5/23/2023 in #❓┊help
Single entry from DatePicker or DateTimePicker
Maybe something like:
Forms\Components\DatePicker::make('challan_for')->fields(['Month', 'Year'])->default(now());
Forms\Components\DatePicker::make('challan_for')->fields(['Month', 'Year'])->default(now());
7 replies
FFilament
Created by RMH on 5/23/2023 in #❓┊help
Single entry from DatePicker or DateTimePicker
7 replies