Zblog_Eloquent_ORM

  • ID : Zblog_Eloquent_ORM
  • edition : 1.0.5
  • author : XiaoFeng ( Author website )  Contact author
  • Official website : H ttps://Www.SongHaiFeng.Com
  • system requirements : Z-BlogPHP 1.7.2 Tenet
  • Update Date : 2022-09-01 11:32:09   Long time no update
  • amount of downloads : one hundred and twenty-two
  • Scoring : The average score of two votes is 10/10
  • PHP version : 7.3 and higher
  • size : 7.84MB

Get apps

It is provided for developers to use. Unless required by plug-ins or themes, it is useless for ordinary users to download.


I believe that some of you who use Laravel also know how comfortable ORM is to use. Now it's here!!!


Need to prepare:

php >= 7.3

Configure composer

Familiarity with namespaces and autoloading


It can be used after installation, for example:

1. Create a new composer.json file in any directory in the theme or plug-in, and write the following code:

{

  "autoload": {

    "psr-4": {

      "ModelsDemo\\": "./ModelsDemo",

      "ObserverDemo\\": "./ObserverDemo"

    }

  }

}

Note: To avoid conflicts, automatically loaded namespaces and folder names are marked with the ID of the theme or plug-in


2. Execute composer dump autoload configuration automatic loading


3. Introduce autoload.php into include.php of the theme or plug-in, such as:

include_once dirname(__FILE__) . DIRECTORY_SEPARATOR.'/ vendor/autoload.php';


For specific usage, see Larravel ORM Document , does not support the use of facade classes. For transaction related information, please refer to the methods of Models/BaseModel in the plug-in. Other operations remain unchanged.

Code cloud address: https://gitee.com/SongHaiFeng/Zblog-Eloquent-ORM


#Update 2022.09.01

Pose a transaction

Add global Zblog_Eloquent_ORM attribute

Adjust DOC Document

See the DOC.md file under the plug-in for the specific use method


#Update 2022.05.17

Adjust a problem last updated

Adjust system tables to use default database links by default


#Updated on April 16, 2022.02

New CustomPaginate method for paging


#Update 2021.11.24

Support conversion table coding

Support configuration of multiple databases


#Updated on May 11, 2021.01

Add support for paging, for example:

 $post = \Models\Post::query()->paginate(10, ['*'], 'p', GetVars('p', 'GET', 1));
 echo \Base\Pagination::paginate($post);

This is a bootstrap compliant paging html structure. If it returns null, no paging exists.

In addition, the pageName of paginate method is page by default, and the paging parameter of zblog is also page by default, so you need to specify that the paging parameter is p and must be p.

Hello, Z Blog related website has opened the real name system, please log in Bind your phone , and then make comments. Thank you for your support.


Welcome to: Xiaofeng Blog



ZBLOG Application Center - Application Purchase and Use Agreement


1. Before purchasing an app, you need to confirm whether the app meets your needs. Digital products do not support trial. According to Article 25 of the Consumer Protection Law, the app is a digital product downloaded online and cannot be refunded once it is downloaded and installed after purchase.
2. The application you purchased in the application center, Only the license of the application, and the ownership of the application still belongs to the application provider.
3. An application can only be used for a single account. Without the consent of the website and the application provider, No secondary release, gift, resale, lease, piracy, etc , otherwise we will Permanently close the user account And reserves the right to continue to investigate relevant responsibilities.
4. If The website containing the application is resold or given away, leased, etc. Please purchase the application with a new account or remove the application Otherwise, it will be deemed as violating the use agreement and permanently canceling the right to use the account.
5. Unless otherwise specified, the purchased applications only include relevant use rights and free update services, and the application center and application provider do not provide additional after-sales installation and other services.
6. The risks in your use of the application are entirely borne by the user, including system damage, data loss and any other risks.
seven Users shall not use this app to engage in any behavior that violates laws, regulations and social public order and good customs in any way. Users must bear all legal responsibilities for the possible consequences of their improper use, and the website and application provider will not bear any responsibility.
eight If the application provider and the website find that the user installs the application on illegal websites such as pornography, gambling, drugs and fraud, they will stop the user's use rights and services, and report the user's illegal information to the network supervision department.
9. The website and application providers reserve the right to change, restrict, freeze or terminate your use of certain content without notifying you and assuming no responsibility for you.


Purchasing Guide


1. Please first Registered account , and Sign in Application Center.
2. Directly click "Buy App" and follow the instructions.


Download Guide


1. The buyer logs in on his Z-Blog website, enters the background, and clicks the "Application Center" menu on the left menu bar.
2. On the home page of the "Application Center", log in using the application center registration account.
3. Enter "My Application Warehouse" to see the successfully purchased applications. Click "Download" to download and install them.


Other precautions


1. If you cannot normally access the application center through the background of your own website, please purchase carefully, because this may cause the application to fail to download and install smoothly.
2. If the paid application cannot be downloaded normally, please check Z-Blog and application updates in the background of your website. If you have updated to the latest version and still cannot download, please contact us in time.
3. The local settings may be overwritten when the update is applied. Please make a backup before the update.