Skip to content
weworknetwork

weworknetwork

  • About
  • About
  • Clients
  • Clients
  • Contact
weworknetwork
weworknetwork

Uncategorized

  • Uncategorized

    Generate a Model from an Existing Migration in Laravel

    Byitdhivii@gmail.com March 2, 2025

    To auto-create a model from a migration file in Laravel, follow these steps: 1. Generate a Model from an Existing Migration Run the following command: For example, if your table is inventories, run: 2. Generate a Model with a Migration and Factory (if needed) If you haven’t created a migration yet and want to generate…

    Read More Generate a Model from an Existing Migration in LaravelContinue

  • Uncategorized

    ทำความเข้าใจส่วนประกอบของเส้นทาง (Route) ใน Laravel กัน

    Byitdhivii@gmail.com February 24, 2025

    มาทำความเข้าใจส่วนประกอบของเส้นทาง (Route) นี้ทีละส่วนกันครับ: ตัวอย่าง Route::get(‘asset/getall’, [AssetController::class, ‘getall’])->name(‘asset.getall’); 1. Route::get() 2. ‘asset/getall’ 3. [AssetController::class, ‘getall’] 4. ->name(‘asset.getall’) สรุปการทำงานทั้งหมด:เมื่อมี request เข้ามาที่ URL /asset/getall ด้วย method GET→ Laravel จะเรียกใช้ method getall() ใน AssetController→ method นี้จะทำการดึงข้อมูลและส่งกลับ response ไปยังผู้ใช้ ตัวอย่างการใช้งานจริง:สมมติว่าเราต้องการดึงข้อมูล Asset ทั้งหมดจาก API ประโยชน์ของการตั้งชื่อ Route: ควรใช้เมื่อไหร่?

    Read More ทำความเข้าใจส่วนประกอบของเส้นทาง (Route) ใน Laravel กันContinue

  • Uncategorized

    insert existing users with plain-text passwords into Laravel’s users table

    Byitdhivii@gmail.com February 20, 2025February 22, 2025

    To insert existing users with plain-text passwords into Laravel’s users table (used by Laravel Breeze authentication), follow these steps: ✅ Step 1: Hash Passwords Before Inserting Since Laravel requires bcrypt hashed passwords, you need to hash them before inserting into the users table. You can do this in a Laravel command, seeder, or migration script….

    Read More insert existing users with plain-text passwords into Laravel’s users tableContinue

  • Uncategorized

    Integrating Payments with QR Code in LINE Bot (Laravel)

    Byitdhivii@gmail.com February 19, 2025February 19, 2025

    Integrating Payments with QR Code in LINE Bot (Laravel) To integrate a payment gateway in your LINE bot and generate a QR code for payments, you can use Omise, PromptPay, PayPal, or Stripe. In this example, I’ll guide you through PromptPay QR (Thailand) and Stripe. 1. Generate a PromptPay QR Code PromptPay is widely used…

    Read More Integrating Payments with QR Code in LINE Bot (Laravel)Continue

  • Uncategorized

    LINE chatbot with rich messages, carousels, buttons, AI/NLP integration, and chat log storage in a database

    Byitdhivii@gmail.com February 19, 2025

    Here’s how to improve your LINE chatbot with rich messages, carousels, buttons, AI/NLP integration, and chat log storage in a database. 1. Improve Bot with Rich Messages, Carousels, and Buttons LINE supports flex messages (rich UI elements like buttons, carousels, and images). Example: Sending a Button Message Modify LineBotController.php to send a button with options….

    Read More LINE chatbot with rich messages, carousels, buttons, AI/NLP integration, and chat log storage in a databaseContinue

  • Uncategorized

    Creating a LINE Chatbot Using Laravel

    Byitdhivii@gmail.com February 19, 2025February 19, 2025

    Creating a LINE Chatbot involves several steps, including setting up a LINE Developer account, creating a Messaging API bot, and developing the bot using a backend framework like Laravel, Node.js, or Python. Here’s how you can do it step by step: 1. Create a LINE Developer Account 2. Create a LINE Messaging API Bot 3….

    Read More Creating a LINE Chatbot Using LaravelContinue

Page navigation

Previous PagePrevious 1 2 3 4 Next PageNext

© 2025 weworknetwork - WordPress Theme by Kadence WP

  • About
  • About
  • Clients
  • Clients
  • Contact