feat(currency): tambahkan atribut simbol dan perbarui tampilan
- Menambahkan kolom simbol pada tabel mata uang di halaman index. - Menambahkan input simbol pada form pembuatan mata uang. - Memperbarui aturan validasi untuk simbol pada CurrencyRequest. - Memperbarui model Currency untuk menyertakan atribut simbol. - Memperbarui migrasi untuk menambahkan kolom simbol pada tabel currencies.
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
$search = $request->get('search');
|
||||
$query->where(function ($q) use ($search) {
|
||||
$q->where('code', 'LIKE', "%$search%");
|
||||
$q->orWhere('symbol', 'LIKE', "%$search%");
|
||||
$q->orWhere('name', 'LIKE', "%$search%");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
{
|
||||
$rules = [
|
||||
'name' => 'required|string|max:255',
|
||||
'symbol' => 'required|string|max:10',
|
||||
'decimal_places' => 'nullable|integer|between:0,3',
|
||||
'status' => 'nullable|boolean',
|
||||
'authorized_at' => 'nullable|datetime',
|
||||
|
||||
Reference in New Issue
Block a user