Create a new model instance with attributes *attrs*, and insert it into the database. ```js let post = blogPosts.create({title: 'Lorem ipsum'}); post.title; // Lorem ipsum post.id; // 1 post.isNew(); // false ``` @method create @param type @param attrs
(type, attrs)
| 191 | @public |
| 192 | */ |
| 193 | create(type, attrs) { |
| 194 | return this.new(type, attrs).save(); |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | Return all models in the database. |
no test coverage detected