CodeSleeve / laravel-stapler

Stapler-based file upload package for the Laravel framework.
MIT License
556 stars 109 forks source link

What value to use when selecting attributes in query? #131

Open rbruhn opened 7 years ago

rbruhn commented 7 years ago

When performing a query selecting certain columns, what is used to call attachments. For example

Project::find(1, ['title', 'logo']);

The above throws an error. If I select () and use $project->logo->url() it works as expected. However, I don't want to select on all my queries.