البرمجة والتطوير

البرمجة والتطوير كل ما يخص عالم البرمجة، التطوير والالكترونيك
- برمجة مو

Fermé définitivement.
Laravel Tips & TricksSometimes we need to dispatch events after database changes, as shown in this picture.The Problem:I...
15/04/2026

Laravel Tips & Tricks

Sometimes we need to dispatch events after database changes, as shown in this picture.

The Problem:
If something goes wrong and the transaction rolls back, the event has already been dispatched.
There are several solutions for this issue:
One:
add public $afterCommit = true; in PaymentNotification class
Two:
use afterCommit like this:
DB::afterCommit(function () use ($order) {
PaymentNotification ::dispatch($order); // Only runs after successful commit
});
Three:
Dispatch the event outside the DB::transaction block:
but first you need to check if order successfully updated

My recommendation: solution one is the cleanest and most Laravel-idiomatic approach

Laravel Tips & TricksSometimes we need to dispatch events after database changes, as shown in this picture.The Problem:I...
06/04/2026

Laravel Tips & Tricks

Sometimes we need to dispatch events after database changes, as shown in this picture.

The Problem:
If something goes wrong and the transaction rolls back, the event has already been dispatched.
There are several solutions for this issue:
One:
add public $afterCommit = true; in PaymentNotification class
Two:
use afterCommit like this:
DB::afterCommit(function () use ($order) {
PaymentNotification ::dispatch($order); // Only runs after successful commit
});
Three:
Dispatch the event outside the DB::transaction block:
but first you need to check if order successfully updated

My recommendation: solution one is the cleanest and most Laravel-idiomatic approach

Livewire Filemanager package
10/12/2024

Livewire Filemanager package

A simple, friendly and practical Livewire filemanager for your applications - livewire-filemanager/filemanager

04/09/2022

السلام عليكم
نسخة تجريبية لمشروعي
الشرح في المنشور السابق

السلام عليكمكنت أعمل على مشروع يحتوي على إرسال رسالة نصية عن طريق  sim800l ، المشكل عند اشتغال sim800l بعد حوالي عشرة ثو...
29/08/2022

السلام عليكم
كنت أعمل على مشروع يحتوي على إرسال رسالة نصية عن طريق sim800l ، المشكل عند اشتغال sim800l بعد حوالي عشرة ثواني يعيد الاشتغال تلقائيا
عند البحث على هذا المشكل وجدت أنه يجب تغذية sim800l ب 5v 2A
المشكل انا كنت رابط شريحة مع اردوينو
المشكل في التغذية لهذا كان يعيد الاشتغال تلقائيا
الحل لازم régulateur يطيك 5v 2a
لكن وجدت حل اخر و هو تغيير مكثفة sim800l التي كانت سعتها 480uf بمكثفة اخرى 4800uf عندما قمت بتغييرها اشتغل بشكل عادي
صور توضح المكثفتين و تم إرسال رسالة نصية بنجاح
بغيت بارطاجي معاكم هذ المشكل بلاك كاش واحد يستفاد منو

السلام عليكم ورحمة الله تعالىالكثير من مطوي المواقع والتطبيقات يحتاجون إلى إرسال رسالة إلى رقم الهاتف من أجل تأكيد التسج...
18/08/2022

السلام عليكم ورحمة الله تعالى
الكثير من مطوي المواقع والتطبيقات يحتاجون إلى إرسال رسالة إلى رقم الهاتف من أجل تأكيد التسجيل أو الدخول، لكن المشكل هو أنه جميع API مدفوعة الثمن مثال: Twilio
البعض يستعمل Firebase لكن أنا شخصيا لا أستعلمها
المهم لهذا طورت مشروع عن طريق NodeMCU et GSM
أولا: عند أول استعمال يتيح لك AP للاتصال بها
عند الاتصال بـ AP يضيئ لاد
بعد ذلك يمكنك إختيار شبكة الوايفاي الخاصة بك والاتصال بها
عند الاتصال بالشبكة الخاصة بك ينطفئ لاد ويشتغل لاد أخر يدل على أنك متصل بالانترنت
الأن كل شيء جاهز من جهة الأردوينو
نأتي لجهة API عملت مشروع واب عند طلب إرسال رسالة تأكيد يرسل عن طريق API رقم الهاتف و كود التفعيل
نعود للأردوينو يقرأ الاردوينو API ويأخذ منه رقم الهاتف وكود
بعد ذلك يقوم بإرسال رسالة قصيرة إلى الرقم عن طريق GSM SIM
عند التأكد من أن الرسالة تم إرسالها يرسل إلى قاعدة البيانات عن طريق API تأكيد الإرسال
يعني ملخص المشروع تقدر SMS Auto notifications لوحدك
في القريب إن شاء الله مشروع النهائي
مازال ندير في لي تاست ههه

إذا كنت من المهتمين بعالم المواقع الالكترونية  نعرض عليكم الأن دورة برمجة وتصميم المواقع الالكترونية من 0* الدورة حضورية...
11/05/2022

إذا كنت من المهتمين بعالم المواقع الالكترونية نعرض عليكم الأن دورة برمجة وتصميم المواقع الالكترونية من 0
* الدورة حضورية وتطبيقية 100%
* برنامج الدورة :
- HTML - CSS - Javascript - Php - MySql
يعني راح نبداو من 0 مع شرح الكثير من المفاهيم الأساسية
شرح أدوات العمل
شرح لجميع لغات البرمجة المذكورة
المتابعة الدائمة، الرد على التساؤلات والمساعدة لكل المشتكرين أثناء الدورة وبعد إنتهاء الدورة عن طريق مجموعات في Facebook
انطلاق التسجيلات للدورة الأولى (للمبتدئين)
للمزيد من المعلومات لا تترددوا في التواصل معنا
المكان: ثنية الحد - تيسمسلت

PyScriptNow you can create   applications in the browser using  's interface.what is PyScript ?" it's system for interle...
10/05/2022

PyScript
Now you can create applications in the browser using 's interface.

what is PyScript ?
" it's system for interleaving Python in HTML (like PHP) " Peter Wang.
This means you can write and run Python code in HTML, call Javascript libraries in PyScript, and do all your web development in Python.

What is the magic behind PyScript?
PyScript is currently built on Pyodide, which is a “port of CPython to WebAssembly/Emscripten.” PyScript supports writing and running Python code in a browser, and it will provide support for other languages in the future.

The future of PyScript:
PyScript brings Python to the browser. I’m very excited about this new innovation and can’t wait to see how it unfolds in the community. Stay tuned for many great new features coming soon!

Sources:
https://pyscript.net/
https://lnkd.in/e2cDzG82
https://lnkd.in/e--wBSHd
https://lnkd.in/ecTYuMzv

Adresse

Theniet El Had
Theniet El Had
38200

Téléphone

+213791382702

Site Web

Notifications

Soyez le premier à savoir et laissez-nous vous envoyer un courriel lorsque البرمجة والتطوير publie des nouvelles et des promotions. Votre adresse e-mail ne sera pas utilisée à d'autres fins, et vous pouvez vous désabonner à tout moment.

Contacter L'entreprise

Envoyer un message à البرمجة والتطوير:

Partager