Skip to content

Instantly share code, notes, and snippets.

@ceesvanegmond
Created May 6, 2014 13:50
Show Gist options
  • Save ceesvanegmond/0324a6ecbfc3bb5c79b1 to your computer and use it in GitHub Desktop.
Save ceesvanegmond/0324a6ecbfc3bb5c79b1 to your computer and use it in GitHub Desktop.
//regel 78 -> ShapeShifter/Repository.php
if ($attr instanceof CheckboxAttribute) {
$attr->setAttributeValue( Input::get($attr->name, Input::file($attr->name) ?: ''));
}else {
$attr->setAttributeValue( Input::get($attr->name, Input::file($attr->name) ?: $this->model->{$attr->name} ?: ''));
}
@ceesvanegmond
Copy link
Author

Vergeet niet boven aan Repository.php

use Just\Shapeshifter\Attributes\CheckboxAttribute;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment