Labels: model events

A total of 8 results were found

quick get start

Larravel 10 Chinese Document Eloquent ORM

introduce Laravel includes Eloquent, an object relational mapping (ORM) tool, which makes the interaction with the database pleasant. Using Eloquen

Published by Xueyuan Jun 7 months ago    Views: 3943    Number of likes: 0

How can larravel model events obtain the current user in the event or pass in custom parameters when the event subscriber has enabled the queue?

Q&A

I want to record users' operations on important tables. I don't know how to get users now... headache Only the model is transmitted from the model event, and other parameters do not know how to transmit When queues are not enabled

Created by the co pilot five years ago    Number of views: 2552    Number of answers: 2

Advanced Chapter (VI): Complete List of Eloquent Model Events and Monitoring Methods

Laravel Beginner to Proficient Tutorial Database and Eloquent Model

All supported model events When querying, inserting, updating, and deleting on the Eloquent model class, the corresponding model events will be triggered (we will talk about the events separately later

Published by Xueyuan Jun 5 years ago    Views: 20317    Like: 15

quick get start

Larave 5.7 Chinese documents Eloquent model

brief introduction Laravel's built-in Eloquent ORM provides a beautiful and simple ActiveRecord implementation for dealing with databases

Published by Xueyuan Jun 5 years ago    Views: 45659    Number of likes: 2

Introduction: database operation using Eloquent model

Laravel 5.5 Chinese Document Eloquent model

brief introduction Laravel's built-in Eloquent ORM provides a beautiful and simple ActiveRecord implementation for dealing with databases

Published by Xueyuan Jun 6 years ago    Views: 126384    Like: 21

start

Laravel 5.2 Chinese documents Eloquent model

1. Introduction The Eloquent ORM provided by Larave provides a beautiful and simple ActiveRecord implementation for dealing with databases

Published by Xueyuan Jun 8 years ago    Views: 140756    Like: 17

Laravel Cache Instance Tutorial (II) - Optimize the addition, deletion, modification and query of articles based on model+cache

Larravel 5.1 Basic Tutorial Service

In the previous section, we configured the cache driver in config/cache.php. In fact, what cache driver we configure is not obvious at the application level, because Larave

Published by Xueyuan Jun 8 years ago    Views: 23777    Like: 14

Eloquent ORM Instance Tutorial - Query Scope and Model Events

Larravel 5.1 Basic Tutorial Database

1. Query Scope Eloquent also supports encapsulating some commonly used queries into model methods for easy invocation. We call it "query scope", which is very simple

Published by Xueyuan Jun 8 years ago    Views: 36836    Number of likes: 30