sehrgutesoftware / laravel5-api

A modular controller for exposing Laravel 5 Eloquent models as a REST API
https://packagist.org/packages/sehrgut/laravel5-api
MIT License
13 stars 2 forks source link

Should throw an Exception when trying to set a non existing context attribute #39

Open mohanklein opened 7 years ago

mohanklein commented 7 years ago

E.g. If you try to set $this->context->model = null nothing happens to protected $model as it should, but I think an error would be nice, to see when I make a mistake