Some work on customers view #3

This commit is contained in:
2025-11-04 13:51:31 +01:00
parent 3c2d35f458
commit 82e04acc2c
13 changed files with 154 additions and 51 deletions
+17 -1
View File
@@ -4,7 +4,7 @@
use App\Models\Customer;
use App\Support\ApiDataTransformer;
use Pest\ArchPresets\Custom;
use Illuminate\Support\Facades\Storage;
class CustomerController extends Controller
{
@@ -51,4 +51,20 @@ public static function generateCustomerNumber()
}
}
}
// // Beispiel für das Hochladen eines Kundenlogos
// if ($request->hasFile('customer_logo')) {
// $path = $request->file('customer_logo')->store('customer_logos', 'public');
// // Speichere den Pfad in der Datenbank
// $customer->logo_path = $path;
// $customer->save();
// }
// // Beispiel für das Hochladen eines Kontakt-Avatars
// if ($request->hasFile('contact_avatar')) {
// $path = $request->file('contact_avatar')->store('contact_avatars', 'public');
// // Speichere den Pfad in der Datenbank
// $contact->avatar_path = $path;
// $contact->save();
// }
}
+1
View File
@@ -21,6 +21,7 @@ class Customer extends Model
'tax_id', // Tax identification number
'global_id', // Global Location Number (GLN) or other identification
'legal_registration_id', // Legal registration ID
'url',
'email',
'phone',
'billing_address',