zofe/rapyd-laravel — pull request #56 by ishinao (2014-07-28 04:55:10+00:00)
Title: ignore errors checking existence of relations

I have a column named `guard`, and the code `$this->model->$relation()` executes Eloquent::guard() method to check whether relation method exists, and the exception occurs; `Argument 1 passed to Illuminate\Database\Eloquent\Model::guard() must be of the type array, none given`.

Another column name, the same name of Eloquent methods exists, will have the same problem, so I think it's good to change ignoring errors like `@$this->model->$relation()`.

Thanks.