Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Interact Laravel Package

milestone/interact

View on GitHub
Deep Wiki
Context7

The package which enables direct interaction with appframe project tables.

install appframe install interact

Create class with same name of incoming table, which implements the interface Milestone\Interact\Table

Give common namespace for all such classes and mention that namespace in interact configuration file in config folder.

If any data from import interact file required, the define public properties in the class in the name table,mode,primary_key,data

If a method named, isValidImportRecord, is available, then this method will be called before executing each record. That particular record will be the only argument supplied to this method. This method should return boolean true, false or string mentioning the reason for invalid.

If a method named, recordImported exists, then this method will be called after executing each record. This method received that particular record and id of execution. Return value is ignored.

If a method named, preImport, is exists, then it will be called before starting the import action. It will be supplied with the argument, the total Content. Modified Content or null to be return.

If a method named, postImport, is exists, then it will be called after executing the whole action. It will be supplied with the argument, the total Content and Result object. This should respond with modified result which will be outputted or else with null to output default Result object

If a method named, isValidExportGet OR isValidExportUpdate, is available, then this method will be called before executing each record of insert mode or update mode respectively. That particular record will be the only argument supplied to this method. This method should return boolean true or false.

If a method named, recordGetExported, recordUpdateExported exists, then this method will be called after executing each record of insert mode or update mode respectively. This method received that particular record and id of execution. Return value is ignored.

If a method named, preExportGet,preExportUpdate, is exists, then it will be called before starting the export action of mode insert and update respectively. It will be supplied with the argument, the query to be executed. This method should return the same or modified query or null;

If a method named, postExportGet,postExportUpdate, is exists, then it will be called after executing the whole action. It will be supplied with the argument, the eloquent record and exported record. Return value is ignored.

For exporting from web, request to url in the format /interact/{tablename}?created_at=datetime&updated_at=datetime&format=xml&type=file

The root parameter interact can be changed to desired one in config

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
craftcms/url-validator
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony