You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespaceApp\Models;
useSilver\Database\Model;
/** * Users Model */class Users extends Model
{
protectedstatic$_table = 'users';
// this need to catch when you do in controller Users::all(); or Users::find($id); protected$hidden = [
'password',
];
}
if users have for example: "email, password, token, activate" -> when you call model if is something inside hidden must not show to the view or in response
Path to DB:
System/Database/* -> inside here is entire ORM
We need to fix problem with ReflectORM and model to filter the methods from App/Models/* $hidden, $selectable, $fiterable, $includable, $editable,...
The text was updated successfully, but these errors were encountered: