Skip to content

Get the results by trait in model #3

@karam-mustafa

Description

@karam-mustafa

I think we can handle the logic for a custom model by adding trait in the model.

example:
instead of using the package in the follwing way

 $instance = (new \SOS\RelationalMetrics\Classes\RelationalMetrics("Store")); 
 $metrics = $instance->getBasicMetrics();

we can get the same result as this example:

$metrics = Store::getBasicMetrics();

and the getBasicMetrics function should be able to call statically or from a new instance of the model

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions