Download the PHP package divineomega/uxdm-eloquent without Composer
On this page you can find all versions of the php package divineomega/uxdm-eloquent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download divineomega/uxdm-eloquent
More information about divineomega/uxdm-eloquent
Files in divineomega/uxdm-eloquent
Package uxdm-eloquent
Short Description Eloquent package for the UXDM data migrator
License LGPL-3.0-only
Informations about the package uxdm-eloquent
🔀 UXDM Eloquent
The UXDM Eloquent package provides a UXDM source and destination for the Eloquent ORM, commonly used in Laravel projects.
Installation
To install the UXDM Eloquent package, just run the following composer command.
UXDM Eloquent Source
The UXDM Eloquent source allows you to source data from an Eloquent model. This can be handy if you need to migrate data from a system using the Eloquent ORM, such as a Laravel project.
Creating
To create a new Eloquent source, you must provide it with the class name of Eloquent model you wish to use.
The following example creates a Eloquent source object, using an Eloquent model called User
in the App
namespace.
You can also pass a query callback as a second parameter to restrict the results returned, as shown below.
Assigning to migrator
To use the Eloquent source as part of a UXDM migration, you must assign it to the migrator. This process is the same for most sources.
UXDM Eloquent Destination
The UXDM Eloquent destination allows you to migrate data into an Eloquent model. This can be handy if you need to migrate data into a system using the Eloquent ORM, such as a Laravel project.
Creating
To create a new Eloquent destination, you must provide it with the class name of Eloquent model you wish to use.
The following example creates a Eloquent destination object, using an Eloquent model called User
in the App
namespace.
Assigning to migrator
To use the Eloquent destination as part of a UXDM migration, you must assign it to the migrator. This process is the same for most destinations.
Alternatively, you can add multiple destinations, as shown below. You can also specify the fields you wish to send to each destination by passing an array of field names as the second parameter.
All versions of uxdm-eloquent with dependencies
illuminate/support Version ^5.1||^6.0||^7.0||^8.0||^9.0||^10.0
illuminate/database Version ^5.1||^6.0||^7.0||^8.0||^9.0||^10.0