From 745030b1a15efd1ce0fbf13a7c7918688d4d3fe8 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sat, 1 Feb 2014 15:51:05 +0400 Subject: [PATCH] Fixed bad example in mass assignment guide --- docs/guide/model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/model.md b/docs/guide/model.md index c340b6c..19ec804 100644 --- a/docs/guide/model.md +++ b/docs/guide/model.md @@ -237,8 +237,8 @@ Using the same `attributes` property you can massively assign data from associat ```php $attributes = [ - 'title' => 'Model attributes', - 'created_at' => time(), + 'title' => 'Massive assignment example', + 'body' => 'Never allow assigning attributes that are not meant to be assigned.', ]; $post->attributes = $attributes; ```