Download the PHP package idophp-uk/teamwork-eloquent-models without Composer
On this page you can find all versions of the php package idophp-uk/teamwork-eloquent-models. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download idophp-uk/teamwork-eloquent-models
More information about idophp-uk/teamwork-eloquent-models
Files in idophp-uk/teamwork-eloquent-models
Package teamwork-eloquent-models
Short Description Eloquent models for interacting with a Teamwork.com database backup
License GPL-2.0-only
Homepage https://github.com/idophp-uk/teamwork-eloquent-models
Informations about the package teamwork-eloquent-models
This package provides a set of Eloquent Models for use with a teamwork.com database backup.
reliese/laravel
was used to generate the models from an imported database to a Laravel 11.x application.
This library might work with other versions of Laravel.
Usage:
The following is how the models were created within a Laravel 11.x application:
-
Installed the reliese/laravel package as a development requirement:
-
Created a new database to hold the teamwork.com database backup:
-
The
reliese/laravel
utility will fail when it tries to work with foreign key constraints to tables columns that are not part of the database backup. These FK constraints are removed here: -
Ran the
reliese/laravel
utility to create the Model files: - Edited
.env
to switch the database back to the normally configured database