add file to lan paid off letter
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Modules\PhoneNumberVerification\Rules\PhoneNumberVerificationRule;
|
||||
use App\Modules\Region\Repositories\RegionRepository;
|
||||
use App\Modules\TurkmenPassport\Repositories\TurkmenPassportRepository;
|
||||
use Filament\Forms\Components\DatePicker;
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\RichEditor;
|
||||
use Filament\Forms\Components\Select;
|
||||
@@ -160,6 +161,12 @@ class LoanPaidOffLetterForm
|
||||
->required()
|
||||
->maxLength(255)
|
||||
->columnSpan(6),
|
||||
|
||||
FileUpload::make('loan_file')
|
||||
->label(__('Loan paid off letter file'))
|
||||
->columnSpan(2)
|
||||
->maxSize(4096)
|
||||
->columnSpan(2),
|
||||
]),
|
||||
|
||||
]);
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('loan_paid_off_letters', function (Blueprint $table) {
|
||||
$table->string('loan_file')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('loan_paid_off_letters', function (Blueprint $table) {
|
||||
$table->dropColumn('loan_file');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -26,6 +26,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
* @property string $loan_contract_date
|
||||
* @property string $loan_amount
|
||||
* @property string $loan_reason
|
||||
* @property null|string $loan_file
|
||||
* @property \Illuminate\Support\Carbon $created_at
|
||||
* @property \Illuminate\Support\Carbon $updated_at
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user