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

Save a model without massive assignment #44

Closed xcaptain closed 9 years ago

xcaptain commented 9 years ago

The create method works only when a column is in the $fillable array. the saveModel method can save any columns to a model

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