rinvex / laravel-repositories

⚠️ [ABANDONED] Rinvex Repository is a simple, intuitive, and smart implementation of Active Repository with extremely flexible & granular caching system for Laravel, used to abstract the data layer, making applications more flexible to maintain.
https://rinvex.com
MIT License
668 stars 115 forks source link

FatalThrowableError (E_ERROR) select #201

Open khanhnam99 opened 4 years ago

khanhnam99 commented 4 years ago

i want select (column table)

    $params = array_merge([
        'parent_id'     => array(),
    ], $params);

    $params['parent_id'] = !empty($params['parent_id']) ? implode(',',$params['parent_id']) : null;

    $result = ModuleController::select(
        ModuleController::TABLE.'.id',
        ModuleController::TABLE.'.name',
        ModuleController::TABLE.'.controller_name',
        ModuleController::TABLE.'.action',
        ModuleController::TABLE.'.is_active',
        ModuleController::TABLE.'.module_id',
        ModuleController::TABLE.'.parent_id',
        ModuleController::TABLE.'.icon_menu'
    );

Capture

notice error

Capture2

michail1982 commented 4 years ago

@khanhnam99 check use statments . ModuleController is not Eloquent\Model instance