CodeSleeve / laravel-stapler

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

Determining if an file has been set #113

Open mrchimp opened 8 years ago

mrchimp commented 8 years ago

The only way I've found to do this so far is

if ($my_model->my_file->originalFilename() !== null) {

...which isn't terrible but feels a little hacky. Is there another way I'm supposed to do this?

matiaslauriti commented 7 years ago

I am doing the same, it is horrible to do this.