Some work on customers view #3
This commit is contained in:
@@ -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();
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user