About 13,800,000 results
Open links in new tab
  1. Eloquent: Getting Started - Laravel 12.x - The PHP Framework ...

    Generating Model Classes To get started, let's create an Eloquent model. Models typically live in the app\Models directory and extend the Illuminate\Database\Eloquent\Model class. You may …

  2. Create Model In Laravel - An Easy Guide For Laravel Developers

    Apr 1, 2024 · Learn how to create a model in Laravel and connect your database using Eloquent ORM. A step-by-step coding guide for beginner and expert Laravel Developers.

  3. php - Eloquent - Updating all models in a collection - Stack ...

    May 26, 2017 · However, the last example (and only the last) is good when you want to trigger some model events like saving, saved, updating, updated. Other presented solutions are …

  4. 4 Ways to Define Model in Eloquent (Laravel) - Sling Academy

    Jan 16, 2024 · Accessors and mutators allow you to manipulate model data on-the-fly. Approach 4: Global Scopes Apply a query scope to all queries for a model: Create a new class …

  5. magento2/vendor/magento/module-sales/Model/Order/Item.php

    History History 2381 lines (2120 loc) · 54.1 KB master magento2 / vendor / magento / module-sales / Model / Order / Item.php Top File metadata and controls Code ...

  6. Models | Leaf PHP

    Models A model is a class that represents your app’s data, acting as a bridge between your database and application. Instead of building complex SQL queries, models let you work with …

  7. Laravel Eloquent Model Tutorial with example | All about ...

    Nov 28, 2023 · Laravel Eloquent Model Tutorial with example | All about Models in Laravel 10 A Laravel model represents and interacts with a database table in the application. Using the …