orm--Relational Object Model
Object-Relational mapping (English: Object Relational Mapping, or ORM, or O/RM, or O/R Mapping) is a program technique that enables the conversion of data between different types of systems in object-oriented programming languages. In effect, it actually creates a "virtual object database" that can be used in a programming language.
The eloquent ORM in Laravel is used to interact with the datasheet, where each database table interacts with a corresponding "model" to see if you want to check the official documentation or your own Baidu. Get the property value code for the correlation table as follows:
/**
* [getcontactattribute get seller Contact]
/Public Function Getcontactattribute ()
{return
$this- >hasone (' App\http\models\supplier ', ' SupplierId ', ' SupplierId ')->first ()->contact;
}
The above is a small set to introduce the ORM to get the correlation table property values, we hope to help!