I have the following problem, I am accessing a database from someone else and he hasn't granted me permissions to all columns of the table. So now when I am querying the database like so:
Client::get(1)
It will give me the following error, which is expected because it is trying to select * while it's not allowed.
SELECT command denied to user blabla
I know that you can specify which columns to select on the query's itself, but is there anyway to do this on the model itself? So it's not even possible to get that error? Something along the lines of
$columns = ['col1', 'col2']
which would then edit these queries to select those columns instead of *? I've searched all over the internet but haven't been able to find what I need. And if it's not possible, do you guys have any workarounds for this issue?