bosnadev / repository

Laravel Repositories is a package for Laravel 5 which is used to abstract the database layer. This makes applications much easier to maintain.
https://bosnadev.com
823 stars 233 forks source link

Add saveModel method to save a model #43

Closed xcaptain closed 9 years ago

xcaptain commented 9 years ago

The create method is only for massive assignment, but with saveModel, we can perform any save operation whether it's in the whitelist

eg. $this->post->saveModel(['title' => 'test', 'body' => 'foo']);